WIN服務(wù)器ASP.NET出現(xiàn) Error: 0x80070005 拒絕訪問
[重要通告]如您遇疑難雜癥,本站支持知識付費(fèi)業(yè)務(wù),掃右邊二維碼加博主微信,可節(jié)省您寶貴時間哦!
網(wǎng)站訪問提示:
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、權(quán)限引起的,由于此錯誤出現(xiàn)在虛擬主機(jī),在新建的應(yīng)用程序使用的是默認(rèn)的應(yīng)用程序池,用的是默認(rèn)賬號運(yùn)行的,而此文件夾沒有此權(quán)限.更改程序使用的應(yīng)用程序池或添加權(quán)限.
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
問題未解決?付費(fèi)解決問題加Q或微信 2589053300 (即Q號又微信號)右上方掃一掃可加博主微信
所寫所說,是心之所感,思之所悟,行之所得;文當(dāng)無敷衍,落筆求簡潔。 以所舍,求所獲;有所依,方所成!