The ASP.NET 2.0 application for IIS 5 that caused the error (aspnet_wp.exe (PID: XXXX) stopped unexpectedly.)

After hosting the ASP.NET 2.0 web application on a Windows 2000 server (IIS 5). I was unable to view the website.

The following error message was displayed in the browser and three event log entries were added ...

Browser error message

Server application unavailable The web application you are trying to access on this web server is currently unavailable. Click the Refresh button in your web browser to repeat the request.

Event Log Entries

Event Type: Error
Event Source: ASP.NET 2.0.50727.0 Event
Category: None
Event ID: 1000
Date
: 10/24/2008 Time: 3:45:26 PM
User: N / A
Computer: XXXXX
Description: aspnet_wp.exe ( PID: XXXX) stopped unexpectedly.

Event Type: Error
Event Source: ASP.NET 2.0.50727.0 Event
Category: None
Event ID: 1088
Date
: 10/24/2008 Time: 3:45:26 PM
User: N / A
Computer: XXXXX
Description: Request failed because it was not possible to create the application domain. Error: 0x80070005 Access denied.

:
: ASP.NET 2.0.50727.0
:
: 1073
: 10/24/2008
: 3:45:26 PM
: N/A
: WEBDEV
: AppDomain:/LM/W3SVC/1/Root/WebApplicationName
: System.IO.FileLoadException
: " System.Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a " . . StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark & stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
    System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark & stackMark, Boolean forIntrospection)
    System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark & stackMark, Boolean forIntrospection)
    System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, , Object [] args, CultureInfo , Object [] activationAttributes, Evidence securityInfo, StackCrawlMark & stackMark)
    System.Activator.CreateInstance(String assemblyName, String typeName)
    System.AppDomain.CreateInstance(String assemblyName, String typeName)
    System.AppDomain.CreateInstance(String assemblyName, String typeName)
    System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
    System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

...

** **

System.IO.FileLoadException System.Web?

+3
4

, - , , , .

  • IUSER_MACHINENAME ( -)
  • ASPNET ( ASP.NET)

, .

, ,

, ApplicationManager HostingEnvironment, System.Web.

FileLoadException System.Web, , ASP.NET GAC.

FileLoadException System.Web?

+2

ASP.NET. , ASP.NET. .

  • C:\windows\microsoft.net\framework\v2.0.50727
  • : aspnet_regiis.exe -u
  • : aspnet_regiis.exe -i

ASP.NET , .

+1

, , IIS, . , , OutOfMemoryException StackOverflowException.

FileLoadException, OutOfMemoryException , . , , , , , .

, , , - , . , DLL, , IIS.

0

I had the same problem and I did not have aspnet_regiis with -u and -i, and many others suggested here . But after I cleaned the folder "% windir% \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET" and granted this folder read and write permissions to the user from the person avatar section in web.config, the problem disappeared. It is not enough to grant these rights to local ASPNET users.

0
source

Source: https://habr.com/ru/post/1698670/


All Articles