gpt4 book ai didi

.net - IIS 5 上的 ASP.NET 2.0 应用程序导致错误 (aspnet_wp.exe (PID : XXXX) stopped unexpectedly.)

转载 作者:行者123 更新时间:2023-12-01 13:09:34 25 4
gpt4 key购买 nike

在 Windows 2000 服务器 (IIS 5) 上托管 ASP.NET 2.0 Web 应用程序之后。我无法浏览网站。

浏览器上显示了以下错误消息,并添加了三个事件日志条目...

浏览器错误信息

Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

事件日志条目

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: Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1073
Date: 10/24/2008
Time: 3:45:26 PM
User: N/A
Computer: WEBDEV
Description: Failed to initialize the AppDomain:/LM/W3SVC/1/Root/WebApplicationName
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied. StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

任何想法...

** 编辑 **

为什么访问 System.Web 程序集会抛出 System.IO.FileLoadException?

最佳答案

我发现,当网站文件夹被复制到服务器时,它继承了父文件夹的安全权限,只有管理员、管理员和系统帐户的权限。

我加了

  • IUSER_MACHINENAME(Internet guest 帐户)
  • ASPNET(ASP.NET 机器帐户)

具有读取和执行列出文件夹内容读取权限。

虽然问题解决了,但还是有一些疑问

从第三个事件日志条目可以清楚地看出,ApplicationManager 无法创建 System.Web 程序集中的 HostingEnvironment。

由于为 System.Web 抛出 FileLoadException,因此 ASP.NET 工作进程似乎无权访问 GAC 文件夹。

为什么访问System.Web会抛出FileLoadException?

关于.net - IIS 5 上的 ASP.NET 2.0 应用程序导致错误 (aspnet_wp.exe (PID : XXXX) stopped unexpectedly.),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/233478/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com