Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 可从局域网访问的VS2015 Web项目_C#_.net_Model View Controller_Visual Studio 2015 - Fatal编程技术网

C# 可从局域网访问的VS2015 Web项目

C# 可从局域网访问的VS2015 Web项目,c#,.net,model-view-controller,visual-studio-2015,C#,.net,Model View Controller,Visual Studio 2015,我无法使我的VS2015 Web项目在LAN上可见 我更改了C:\Users\%user\u name%\Documents\IISExpress\config\applicationhost.config 绑定协议=“http”bindingInformation=“*:57026:127.0.0.1” 但当我按照教程建议添加时 binding protocol=“http”bindingInformation=“*:57026:* 并尝试启动项目我得到“注册URL失败。。。。。拒绝访问“ 我

我无法使我的VS2015 Web项目在LAN上可见

我更改了
C:\Users\%user\u name%\Documents\IISExpress\config\applicationhost.config

绑定协议=“http”bindingInformation=“*:57026:127.0.0.1”

但当我按照教程建议添加时

binding protocol=“http”bindingInformation=“*:57026:*

并尝试启动项目我得到“注册URL失败。。。。。拒绝访问“

我还添加了防火墙例外


我能做什么?

可能是因为VS2015使用了另一个applicationhost.config,它位于项目文件夹(.vs)的隐藏文件夹中

尝试从.vs文件夹中删除applicationhost.config文件,然后重新启动vs 2015。 在此之后,配置要在VS2015上的项目属性上使用的端口

我想这会解决你的问题


另外,我现在无法测试此方案。

在您的计算机上安装IIS并将项目部署到其中?IIS Express旨在让开发人员在自己的计算机上轻松调试和测试,而不是向其他人提供页面。是的,但我需要一个LAN解决方案,可以使用端口转发完成吗?可能是