我有家里的Visual Studio 2010,并开发了一个Web应用程序。我现在在另一个位置的另一台电脑上。我所有的是我的USB驱动器上的项目文件夹,并且所有这台计算机已安装IIS快车。有什么办法可以让我的Web应用程序启动并运行?IIS快速部署应用程序
4
A
回答
13
假设您拥有在项目文件夹中运行Web应用程序所需的所有文件,您应该能够在IIS Express中创建该站点并启动它。
以下是您可能需要添加到IIS Express配置文件的内容。该文件通常位于“C:\ Users \\ Documents \ IISExpress \ config \ applicationhost.config”中。
下面,您将需要更改网站的路径,并确保您正确地绑定到它。如果与您想要保留的任何其他网站冲突,您可能需要更改端口号。
<sites>
<site name="MyWebsite" id="1" serverAutoStart="false">
<application path="/">
<virtualDirectory path="/" physicalPath="<USB Drive>:\<FolderToMyWebsite>" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":8080:localhost" />
</bindings>
</site>
<sites>
0
我有同样的问题,我解决它以下列方式:
例子: 端口= 1111个
local_ip_address = 192.168.1.1 - 在网页存储局域网IP地址
步骤1:
netsh http add urlacl url=http://local_ip_address:port/ user=Everyone
步骤2:
<bindings>
<binding protocol="http" bindingInformation="*:port:localhost" />
<binding protocol="http" bindingInformation="local_ip_address:port:" />
</bindings>
第3步:
netsh advfirewall firewall add rule name="IIS Express (non-SSL)" action=allow protocol=TCP dir=in localport=port
发现评论这里的解决方案: http://blogs.iis.net/vaidyg/archive/2010/07/29/serving-external-traffic-with-webmatrix-beta.aspx
相关问题
- 1. 部署angular2,快速启动应用到IIS
- 2. 在IIS中部署Angular应用程序
- 3. 在IIS上部署ASP.NET应用程序
- 4. .net WCF IIS应用程序,部署
- 5. Silverlight应用程序部署在IIS上
- 6. PHP快速部署
- 7. java快速应用程序
- 8. 内部ASP.NET Web应用程序部署到IIS
- 9. 通过ASP.NET Web应用程序在IIS上自动部署Web应用程序?
- 10. 设置将LightSwitch应用程序部署到的IIS应用程序池
- 11. 将WPF应用程序部署到IIS:“部署和应用程序没有匹配的安全区域。”
- 12. 构建完成后的应用程序的快速部署,而无需运行
- 13. 快速部署Facebook应用程序以显示活动流的任何产品?
- 14. 快速部署到Android模拟器的应用程序始终失败
- 15. 部署快速的NodeJS应用程序在Windows和Linux服务器
- 16. 使用clickonce和iis部署一个winform应用程序失败
- 17. 将Visual Studio Web应用程序部署到使用Oracle.DataAcces.dll的IIS
- 18. 部署Rails应用程序
- 19. 部署应用程序
- 20. 部署Rails应用程序
- 21. 部署Perl应用程序
- 22. 部署Angular.js应用程序
- 23. Wpf应用程序部署
- 24. 部署 - Java应用程序
- 25. 部署QML应用程序
- 26. 部署WCF应用程序
- 27. 部署C#应用程序
- 28. 部署winforms应用程序
- 29. 部署asp.net应用程序
- 30. 部署iPhone应用程序