我已經發布了我的MVC 5應用程序,並將所有文件從本地PC複製到了服務器D驅動器。在Windows Server 2008上部署MVC 5應用程序時出錯
服務器是Windows Server 2008 SP1。
我在服務器上安裝了.NET Framework 4.5。
我在集成模式下創建了一個與.NET Framework 4.0分開的應用程序池。
在IIS中,我右鍵單擊「網站」並選擇「新建網站」。
在物理路徑中,我指向發佈文件所在的服務器上的同一D驅動器。
當我試圖瀏覽,提示錯誤:
No default document configured.
這是因爲沒有安裝在Windows Server Service Pack 2的?它是否需要SP2 for MVC 5應用程序?從命令提示符
aspnet_regiis -i
:
我也臨時用戶ASP.NET 4.0運行。
檢查此鏈接:http://stackoverflow.com/questions/25930846/getting-a-default-document-is-not-configured-error-when-deploying-asp-net-mvc – Ala
@Ala我已經嘗試過這些但我仍然得到403禁止的錯誤。我需要在Windows Server 2008上安裝SP2嗎?我沒有使用Windows Server 2008 R2。 – RKh