简体   繁体   English

允许其他人查看本地IIS7 ASP Web应用程序

[英]Allow others to view local IIS7 ASP web application

I'm working on a Visual Studio 2012 web application, and need to allow colleagues to view the current website by my IP address (while I would access it my localhost). 我正在使用Visual Studio 2012 Web应用程序,需要允许同事通过我的IP地址查看当前网站(而我可以通过本地主机访问它)。 It appears that hosting the site locally through IIS7 and allowing others to access it by my local IP the simplest method. 似乎是通过IIS7在本地托管该站点,并允许其他人通过我的本地IP访问该最简单的方法。 After troubleshooting and experimenting for a day though, I still don't understand the relationship between an IIS7 site/website/application and Visual Studio web application, and the MSDN explanations are really hard to follow. 经过故障排除和试验一天后,我仍然不了解IIS7站点/网站/应用程序与Visual Studio Web应用程序之间的关系,并且MSDN的说明确实很难理解。

Basically, I'm trying to understand: 基本上,我试图理解:

1) How to set up a IIS website and application (should the 'physical path' be the VS solution folder or deployment package .zip folder?, for example) 1)如何设置IIS网站和应用程序(例如,“物理路径”应该是VS解决方案文件夹还是部署包.zip文件夹?)

2) How to most simply deploy the web application (eg File System/ Web Deploy/ Web Package, etc.) and 2)如何最简单地部署Web应用程序(例如,文件系统/ Web Deploy / Web软件包等),以及

3) The order to do all of this. 3)命令执行所有这些操作。

I'm running VS as administrator, my port 80 is open, and have IIS7 set to use .NET v4, yet when I publish the selection using File System in VS2012 to my C drive, the resulting site gets a HTTP:500 error, with no source code underneath. 我以管理员身份运行VS,我的端口80已打开,并且IIS7设置为使用.NET v4,但是当我使用VS2012中的文件系统将选择内容发布到C驱动器时,结果网站出现HTTP:500错误,下方没有源代码。 (Also, before even publishing, setting the solution to use my Local IIS instead of IIS Express and previewing results in a blank page). (此外,甚至在发布之前,将解决方案设置为使用我的本地IIS而不是IIS Express,并在空白页中预览结果)。 If there is a better way to do this please let me know. 如果有更好的方法,请告诉我。

Thanks in advance. 提前致谢。

If you don't want to learn (or bother) with the details of setting it up, you can use a small utility like 'ngrok' that will allow others to view your website at 'localhost'. 如果您不想学习(或烦恼)设置的详细信息,可以使用“ ngrok”之类的小型实用程序,该实用程序将允许其他人在“ localhost”查看您的网站。

Takes about 5 minutes to learn and get up and running (and its free). 大约需要5分钟来学习和启动并运行(及其免费版本)。

https://ngrok.com/ https://ngrok.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM