WIN服务器ASP.NET出现 Error: 0x80070005 拒绝访问
[重要通告]如您遇疑难杂症,本站支持知识付费业务,扫右边二维码加博主微信,可节省您宝贵时间哦!
网站访问提示:
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.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
查看Event Viewer看到的错误为:
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1088
Description:
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Description:
Failed to initialize the AppDomain:/LM/W3SVC/1937156701/Root
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.
原因:
1、权限引起的,由于此错误出现在虚拟主机,在新建的应用程序使用的是默认的应用程序池,用的是默认账号运行的,而此文件夹没有此权限.更改程序使用的应用程序池或添加权限.
2、Framework1和2混用。
cmd
net stop s3svc
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis -ua
aspnet_regiis -i
net start w3svc
先给所在的目录加加aspnet iiswpg
问题未解决?付费解决问题加Q或微信 2589053300 (即Q号又微信号)右上方扫一扫可加博主微信
所写所说,是心之所感,思之所悟,行之所得;文当无敷衍,落笔求简洁。 以所舍,求所获;有所依,方所成!