IIS8 で Windows Server 2012 を実行しています。
Visual Studio 2012 を使用して新しく作成した MVC4 アプリケーションを IIS 8 の仮想ディレクトリとして追加し、それをアプリケーションに変換しようとしています。最初にこのエラーが発生します:
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:\Users\Administrator\Documents\Visual Studio 2012\Projects\MvcApplication2\MvcApplication2\web.config
Requested URL http://localhost:80/mvc
Physical Path C:\Users\Administrator\Documents\Visual Studio 2012\Projects\MvcApplication2\MvcApplication2
Logon Method Not yet determined
Logon User Not yet determined
解決策を検索したところ、IIS_IUSRS のアプリケーション フォルダーに対する読み取りアクセス許可を付与する必要があることがわかりました。
やったよ !次に、このエラーが発生しました:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/mvc/Account/Login?ReturnUrl=%2fmvc
Physical Path C:\Users\Administrator\Documents\Visual Studio 2012\Projects\MvcApplication2\MvcApplication2\Account\Login
Logon Method Anonymous
Logon User Anonymous
どうしたの ??
ありがとうございました !