Googleで検索して検索しましたが、私の状況に該当するようなものは見つけられません。問題は解決しません。私のウェブサイトのどのアドレスに移動しようとしても問題ありません(存在しないアドレスでも404の代わりにこのエラーが出ます)、まったく同じメッセージが表示されます(パスは常に「/」です)。何か案は?エラーメッセージの解決方法:「パス '/'をマップできませんでした」
Server Error in '/' Application.
Failed to map the path '/'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Failed to map the path '/'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Failed to map the path '/'.]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +336
[HttpException (0x80004005): Failed to map the path '/'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11556592
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4813333
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
UPDATE:私は数分これを掲示した後に戻ってサイトに行ってきました - コードや構成に変更を加えていない - とエラーが去っていきました。私は本当にうんざりですが、もはや問題にはなりません。この質問で何をすべきか分かりません。
感謝として。 IISに問題があるか、ASP.NETアプリケーションに問題があります(これを賭けてください)。あなたはあなたのコードを投稿する必要があります、私たちに問題についてもっと教えてください。影響を受けるウェブサイトの数はいくつですか?最近何を変更しましたか?いつ問題が始まりましたか? –
web.configファイルまたは.asaxファイルに何かがありますか? – Christian
仮想ディレクトリまたはIISアプリケーションプールのプロパティを変更しましたか? IISを再起動しようとしましたか?適切なファイルがすべてサーバーに存在していますか? –