【发布时间】:2013-07-21 12:14:23
【问题描述】:
我遇到了这样的错误::
指定的参数超出了有效值的范围。参数名称:站点
在调试我的任何项目时。
我在重新安装我的 Visual Studio 2012 后也尝试过。但在调试时又遇到了同样的问题。
我的系统配置是:
- Windows 8:32 位
- Visual Studio : 2012
Showing Web Page Like 时抛出异常,
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +298
[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
【问题讨论】:
-
这个异常是在哪里抛出的?
-
调试后显示网页时抛出异常。
-
不清楚发布一些代码是抛出该异常的哪一行
-
现在看到我也给出了显示网页时显示的错误
-
@Rahul_RJ 你没有帮助。您正在显示堆栈跟踪,它指出异常的位置,但不包括该代码。
标签: c# visual-studio iis web-config