我使用Visual Studio 2015和Windows 10 hp笔记本电脑。我创建一个asp.net MVC应用程序后,建立并运行它,我得到这个错误:指定的参数超出有效值范围参数名称:站点
Specified Argument was out of the range of valid values Parameter name : site
Description : An unhanded Exception occurred during the execution of the current web request
Stack Trace:
[ArgumentOutOfRangeException: Specified Argument was out of the range of valid values. Parameter Name: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags, hostingFlags, PolicyLevel, policylevel, Exception appDomainCreationException) +560
[HttpException (0x80004005): Specified Argument was out of the range of valid values. Parameter Name: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +765
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerReuest wr, HttpContext context) +195
欢迎的StackOverflow!请显示引发此异常的代码。没有代码,就没有办法可以告诉造成这个错误的原因。 –
这个错误发生在启动时,我不认为它的代码相关的问题 –
维克多,我有完全相同的问题,当然没有代码显示。但问题可以通过下面的答案来解决。谢谢。 –