我已经在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
更新:发布此消息后几分钟,我回到了网站-未更改代码或配置-错误消失了。我真的很困惑,但这不再是问题。