"无法启动IIS前preSS Web服务器"错误 [英] "Unable to launch the IIS Express Web server" error

查看:360
本文介绍了"无法启动IIS前preSS Web服务器"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试推出从Visual Studio IIS防爆preSS与所配置的听localhost以外的地址的项目时我收到此错误。 Visual Studio中冻结约30秒,给人错误无法启动IIS前preSS Web服务器之前。

I receive this error when trying to launch IIS Express from Visual Studio with a project that's configured to listen to an address other than localhost. Visual Studio freezes for about 30 seconds before giving the error "Unable to launch the IIS Express Web server".

我试过张贴到类似的问题在所有的解决方案,我想我已经正确所做的一切。下面是我所采取的步骤:

I've tried all the solutions posted to similar questions and I think I've done everything correctly. Here are the steps that I have taken:


  1. 以下预订添加到HTTP.SYS:

  1. Add the following reservation to HTTP.SYS:

的netsh的http添加urlacl URL = HTTP:// +:36899 / USER =每个人

运行Visual Studio 2012作为管理员(在技术上,我不认为我甚至应该有,因为我手动设置HTTP.SYS)。

Run Visual Studio 2012 as an administrator (technically I don't think I should even have to since I set up HTTP.SYS manually).

禁用Windows防火墙。

Disable Windows Firewall.

删除我IISEx preSS文件夹在我的My Documents文件夹,以确保默认设置。

Delete my IISExpress folder in my My Documents folder to ensure the default settings.

允许Visual Studio为我的web项目中对ApplicationHost.config的条目。然后手动编辑配置文件修改本地主机 192.168.0.100 这是我的本地IP。然后返回到Visual Studio和localhost更改到IP项目属性,保存项目,使我的项目现在设置为 http://192.168.0.100:36899

Allow Visual Studio to create the entry in applicationhost.config for my web project. Then manually edit the config file to change localhost to 192.168.0.100 which is my local IP. Then go back into the project properties in Visual Studio and change localhost to the IP and save the project so that my project is now set to http://192.168.0.100:36899.

我也试图改变端口,重复上述步骤,只是柜面端口是在使用中由于某种原因。

I also tried changing the port and repeating the above steps just incase the port was in use for some reason.

我要让我的IIS防爆preSS开发实例,从我的互联网进行远程测试的IP访问。

I want to make my IIS Express developer instance accessible from my IP on the Internet for remote testing.

推荐答案

有一件事解决了这个问题对我来说是使用在&LT以下行;绑定> 部分我在对ApplicationHost.config 文件site:

The one thing that fixed this for me was using the following line in the <bindings> section for my site in the applicationhost.config file:

<bindings>
    <binding protocol="http" bindingInformation="*:8099:" />
</bindings>

的关键是简单地删除本地主机。不要用星号代替它,不要用一个IP或计算机名替换它。刚刚离开冒号后为空白。

The key was to simply remove localhost. Don't replace it with an asterisk, don't replace it with an IP or a computer name. Just leave it blank after the colon.

这样做后,我并不需要运行Visual Studio作为管理员,我可以自由地在项目属性更改Project URL到本地IP或计算机名。然后,我设置端口转发,这是互联网访问。

After doing this, I don't need to run Visual Studio as administrator, and I can freely change the Project Url in the project properties to the local IP or computer name. I then set up port forwarding and it was accessible to the Internet.

编辑:

我发现多了一个怪癖,就是让IIS防爆preSS正确可以满足外部请求重要。

I've discovered one more quirk that is important to getting IIS Express to properly serve external requests.


  1. 如果您正在运行Visual Studio / IIS防爆preSS作为管理员,您不可以添加使用netsh的HTTP添加urlacl到HTTP.SYS预约... 命令。这样做将导致一个HTTP 503服务不可用错误。删除您在URLACL提出解决这一问题的任何保留。

  1. If you are running Visual Studio/IIS Express as an administrator, you must not add a reservation to HTTP.SYS using the "netsh http add urlacl ..." command. Doing so will cause an HTTP 503 Service Unavailable error. Delete any reservations you've made in the URLACL to fix this.

如果你的不可以运行Visual Studio / IIS防爆preSS作为管理员,您必须添加预订到URLACL。

If you are not running Visual Studio/IIS Express as an administrator, you must add a reservation to the URLACL.

这篇关于&QUOT;无法启动IIS前preSS Web服务器&QUOT;错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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