p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   server error 31bf856ad364e35 (http://p2p.wrox.com/showthread.php?t=85153)

krcfl1 September 23rd, 2011 06:08 PM

server error 31bf856ad364e35
 
I can not find this file to make change, please help!

Server Error in '/WebSite/AquaCab' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace:


[FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyN ame fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyNa me fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAsse mblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(Str ing assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +618
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai) +57
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildManager.GetPreStartIni tMethodsFromReferencedAssemblies() +94
System.Web.Compilation.BuildManager.CallPreStartIn itMethods() +332
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +9079228
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +97
System.Web.HttpRuntime.ProcessRequestNotificationP rivate(IIS7WorkerRequest wr, HttpContext context) +256




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

Imar September 23rd, 2011 06:48 PM

Hi there,

To which chapter and page number are you referring?

Imar

krcfl1 September 24th, 2011 06:36 AM

Reply
 
Quote:

Originally Posted by Imar (Post 276801)
Hi there,

To which chapter and page number are you referring?

Imar

Imar

I could not find anything in the book on this. I thought you would know off the top of your head.

Imar September 24th, 2011 06:37 AM

I asked because it would be helpful to know where you get this error, how, and under which circumstances. So, can you elaborate a bit?

Imar

krcfl1 September 24th, 2011 11:27 AM

Quote:

Originally Posted by Imar (Post 276807)
I asked because it would be helpful to know where you get this error, how, and under which circumstances. So, can you elaborate a bit?

Imar

Irar

Any and every page I try to open with the browser.

Imar September 24th, 2011 11:56 AM

Irar?

Anyway, please try to be a bit more specific. Does this happen on your local machine? Are you running against IIS or the built-in development server? Or did you deploy it to a remote server where the problem is occuring? Do you know what you changed to cause this issue? Has it been there from the very start of the site? Do you have the same issue when creating brand new sites? And so on and so forth.

I can probably help you with this but I need more information. My guess is that it has something to do with an invalid reference in web.config but I am trying to find out how it got there, and what you need to do to fix it.

In other words, help me help you by providing relevant information.

Imar

krcfl1 September 24th, 2011 07:30 PM

Quote:

Originally Posted by Imar (Post 276814)
Irar?

Anyway, please try to be a bit more specific. Does this happen on your local machine? Are you running against IIS or the built-in development server? Or did you deploy it to a remote server where the problem is occuring? Do you know what you changed to cause this issue? Has it been there from the very start of the site? Do you have the same issue when creating brand new sites? And so on and so forth.

I can probably help you with this but I need more information. My guess is that it has something to do with an invalid reference in web.config but I am trying to find out how it got there, and what you need to do to fix it.

In other words, help me help you by providing relevant information.

Imar

Imar
Does this happen on your local machine? Local

Are you running against IIS or the built-in development server? both installed

Do you know what you changed to cause this issue? No I do not know for I have had one problem after the other with the frameworks, server, IIS and VWD. I have installed and removed all of the programs a few times just to get hear.

creating brand new sites? yes this is a new site again.

I still do not understand why I cannot find [HKLM\Software\Microsoft\Fusion!EnableLog].

I am sorry that I am not providing all the info, but I am burned out on this matter.

Imar September 25th, 2011 03:26 AM

Quote:

Are you running against IIS or the built-in development server? both installed
Sure, but that's not what I meant. The problem can occur at various levels such as a failed IIS installation, a failed VS installation, an incorrect machine.config file, incorrect information in your own web.config file and so on. By understanding where the error occurs, and whether this is a design time or a run time issue, and if the issue applies to all your sites, including new ones or just the one you're working on right now, really helps.

Anyway, did you recently install something called the Page Inspector? It's part of the VS 2011 preview for developers but might cause issues with VS 2010: http://www.google.com/#sclient=psy&h...n%3D1.0.0.0%22

Also, did you check the web.config file for references to the fil that cannot be found?

Quote:

I still do not understand why I cannot find [HKLM\Software\Microsoft\Fusion!EnableLog].
It might be located in something called Wow64 or something like that on 64 Bit machines. However, this is irrelevant in this case; you'll need to fix the error at its root by fixing the invalid file reference.

Hope this helps,

Imar

krcfl1 September 25th, 2011 06:23 AM

It was running on ISS now on Dev Server
 
Quote:

Originally Posted by Imar (Post 276823)
Sure, but that's not what I meant. The problem can occur at various levels such as a failed IIS installation, a failed VS installation, an incorrect machine.config file, incorrect information in your own web.config file and so on. By understanding where the error occurs, and whether this is a design time or a run time issue, and if the issue applies to all your sites, including new ones or just the one you're working on right now, really helps.

Anyway, did you recently install something called the Page Inspector? It's part of the VS 2011 preview for developers but might cause issues with VS 2010: http://www.google.com/#sclient=psy&h...n%3D1.0.0.0%22

Also, did you check the web.config file for references to the fil that cannot be found?

It might be located in something called Wow64 or something like that on 64 Bit machines. However, this is irrelevant in this case; you'll need to fix the error at its root by fixing the invalid file reference.

Hope this helps,

Imar

Imar

With it on the server it is still doing it. below is the web config file it looks ok to me. See if you see any thing wrong. I have to do this one thing at a time for I am new to this.

<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\asp netdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider " applicationName="/"/>
</providers>
</roleManager>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>

Imar September 25th, 2011 06:40 AM

No, I don't see anything wrong.

Imar


All times are GMT -4. The time now is 12:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.