Visual Studio和IIS错误:指定的参数超出有效值范围。 参数名称:site

I got a very obscure and obtuse error running an ASP.NET application under Visual Studio and IIS Express recently. I'm running a Windows 10 Insiders (Fast Ring) build, so it's likely an issue with that, but since I was able to resolve the issue simply, I figured I'd blog it for google posterity .

最近在Visual Studio和IIS Express下运行ASP.NET应用程序时,出现了一个非常晦涩难懂的错误。 我正在运行Windows 10 Insiders(Fast Ring)构建,因此这可能是一个问题,但是由于我能够简单地解决该问题,因此我想为 Google 后代撰写博客。

I would run the ASP.NET app from within Visual Studio and get this totally useless error. It was happening VERY early in the bootstrapping process and NOT in my application. It pretty clearly is happening somewhere in the depths of IIS Express, perhaps in a configurator in HttpRuntime.

我将在Visual Studio中运行ASP.NET应用程序,并得到此完全无用的错误。 这是在引导过程的早期发生的,而不是在我的应用程序中发生的。 显然,这发生在IIS Express深度的某个地方,也许在HttpRuntime的配置器中。

Specified argument was out of the range of valid values.
Parameter name: site

I fixed it by going to Windows Features and installing "IIS Hostable Web Core," part of Internet Information Services. I did this in an attempt to "fix whatever's wrong with IIS Express."

我通过转到Windows功能并安装Internet信息服务的一部分“ IIS托管的Web核心”来修复它。 我这样做是为了“修复IIS Express的所有问题”。

Turn Windows Features on or off

That seems to "repair" IIS Express. I'll update this post if I learn more, but hopefully if you got to this post, this fixed it for you also.

这似乎可以“修复” IIS Express。 如果我了解更多信息,我将更新此帖子,但希望您能读到该帖子,也可以为您解决。

翻译自: https://www.hanselman.com/blog/visual-studio-and-iis-error-specified-argument-was-out-of-the-range-of-valid-values-parameter-name-site

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值