Dot-Net

IIS 7.0 錯誤 - 500.19 內部伺服器錯誤

  • March 21, 2013

我目前正在使用 iis 7.0 的共享託管計劃

我在主機的 wwwroot 中有一個 asp.net mvc 應用程序。現在我創建了一個虛擬目錄來儲存我的網路服務(我不想在子域上託管它並支付額外費用)

但是,當我將 Web 服務程式碼放在我的虛擬目錄中並嘗試執行它時,我得到了這個

Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module  IIS Web Core
Notification    BeginRequest
Handler Not yet determined
Error Code  0x80070005
Config Error    Cannot read configuration file due to insufficient permissions
Config File \\?\C:\HostingSpaces\int\Site.com\wwwroot\web.config
Requested URL   http://www.Site.com:80/VirtualDirectory/Webservice.asmx
Physical Path   C:\HostingSpaces\int\Site.com\wwwroot\VirutalDirectory\Webservice.asmx
Logon Method    Not yet determined
Logon User  Not yet determined
Config Source

  -1: 
   0: 

我不知道問題是什麼,也不知道如何解決。

您應該檢查應用程序池的使用者帳戶的權限。或者您可以檢查文件夾的安全屬性(C:\HostingSpaces\int\Site.com\wwwroot)。確保 IIS 的 apppool 的帳戶至少可以讀取該文件夾。

這也可能是由於 IIS 需要一個額外的外掛,例如URL rewrite module rule

引用自:https://stackoverflow.com/questions/2054582