IISExpress从远程计算机返回503错误 [英] IISExpress returns a 503 error from remote machines

查看:84
本文介绍了IISExpress从远程计算机返回503错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试测试我在本地IISExpress实例中与本地网络上的其他一些计算机/设备一起运行的网站.我正在运行Win7 Pro.

I'm attempting to test a website I have running in a local IISExpress instance with some other machines / devices on my local network. I am running Win7 Pro.

当我第一次尝试从本地网段中的另一台计算机浏览到我的计算机时,出现400错误:主机名无效.

When I first attempt to browse to my machine from another machine on my local network segment, I get a 400 error: Hostname is invalid.

我了解我需要在提升的命令提示符下使用以下命令来授予对ACL的远程访问权限:

I understand that I need to grant remote access to the ACL with a command on the elevated command prompt like:

netsh http add urlacl url=http://mymachinename:50333/ user=everyone

现在我得到503服务不可用的错误.

Now I get a 503 service is unavailable error.

Windows防火墙当前已关闭,我能够使用地址http://localhost:50333

Windows Firewall is currently shut off, and I am able to browse my local IISExpress instance with the address http://localhost:50333

此配置难题的最后一部分是什么?

What is the final piece to this configuration puzzle?

推荐答案

似乎您在applicationhost.config文件中缺少绑定信息条目.

It looks like you are missing a binding information entry in applicationhost.config file.

  1. 打开您的applicationhost.config文件.可能的位置是:

  1. Open your applicationhost.config file. Possible locations are:

  • %userprofile%\Documents\IISExpress\config\applicationhost.config
  • $(solutionDir)\.vs\config\applicationhost.config(VS2015)
  • 如果没有,请检查iisexpress.exe的输出以确保.
  • %userprofile%\Documents\IISExpress\config\applicationhost.config
  • $(solutionDir)\.vs\config\applicationhost.config (VS2015)
  • Failing that, inspect the output from iisexpress.exe to be sure.

找到您的WebSite条目,并在与您的计算机名称绑定后添加.

Locate your WebSite entry and add following binding with your machine name.

     <binding protocol="http" bindingInformation=":50333:your-machine-name" />

  • 重新启动IIS Express

  • Restart IIS Express

    这篇关于IISExpress从远程计算机返回503错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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