将IISExpress绑定到IP地址失败 [英] Binding IISExpress to IP Address Failing

查看:478
本文介绍了将IISExpress绑定到IP地址失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Win8 Win8.1和Win10中的同一个Windows机器上工作了。昨天我执行了Threshold 2升级到Windows 10,现在我无法在IISExpress中启动我的API。

I've had this working on the same Windows box in Win8 Win8.1 and Win10. Yesterday I performed the Threshold 2 upgrade to Windows 10 and now I can't launch my API in IISExpress.

绑定设置如下:

<binding protocol="http" bindingInformation="*:51258:jamhq" />
<binding protocol="http" bindingInformation="*:51258:192.168.0.8" />

我已经检查了所有 netsh 我在排除故障时完全禁用了Windows防火墙。

I've triple checked all my netsh settings and at the moment Windows Firewall is completely disabled whilst I troubleshoot.

每次尝试启动时,我都会遇到如下错误:

Every time I try to launch this I'm now presented with an error like this:

Failed to register URL "http://192.168.0.8:51258/" for site "<name>" application "/"
Error Description: The Network location cannot be reached.
For more information ... (0x800704d0)

我可以ping这个IP(显然自从我正在打电话给自己),我可以从我的其他机器/设备ping这个位置。

I can ping this IP (obviously since I'm pinging myself), I can ping this location from my other machines / devices.

似乎有些极低级别的网络设置已被更改。

It seems like some extremely low level network setting has been changed.

有没有人看到过这个问题或有解决方案?

Has anyone seen this problem or have a solution?

推荐答案

所以,这个我可能会在未来帮助其他人,今天我一直在解决这个问题,并且刚刚解决了这个问题。

So, this is something that might help others in the future, I've been going round and round on this problem today and have just fixed the issue.

看来更新删除了http.sys正在侦听的IP地址。因此在执行时:

It appears that the update removes IP addresses that the http.sys is listening on. So when executing:

netsh http show iplisten

更新后我唯一的条目是:

The only entry I had after the update was:

::

执行:

netsh http add iplisten 192.168.0.8

Bingo,现在一切正常。

Bingo, everything is now working again.

这篇关于将IISExpress绑定到IP地址失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆