Asp.net-Mvc-2
未為請求的 URL 配置預設文件,並且未在伺服器上啟用目錄瀏覽
我剛剛將我的 asp.net mvc-2 網站部署到伺服器(使用 dotnetpanel)。但是得到這個錯誤
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.我需要什麼設置?它的基於 dotnetpanel 的託管伺服器。
您的主機執行的是哪個版本的 IIS?嘗試的一件事是在根文件夾中放置一個虛擬的 default.aspx 文件(當 MVC 工作時不會使用此文件,但可以擺脫此問題)。