我可以从我的开发计算机(VS2010运行)运行和调试我的VS2010 ASP.NET项目.网址:http://localhost:port/MyApp.htm工作正常.
既然我想从IPad测试应用程序,我需要使用其IP地址(如http://192.168.0.132:port/MyApp.htm)来调用该应用程序
令我惊讶的是,这不起作用,既不是来自IPad也不是开发者.电脑本身.这不是连接的问题,地址是正确的/ ping是可能的.
(请注意,我没有在这台机器上安装IIS,实际上ASP.NET应用程序是纯HTML JS,我使用VS2010进行调试.)
任何解决办法?
解决方法
从Web Servers in Visual Web Developer:
If you cannot or do not want to use IIS as your Web server,you can
still test your ASP.NET pages by using the ASP.NET Development Server.
The ASP.NET Development Server,which is included with Visual Web
Developer,is a Web server that runs locally on Windows operating
systems,including Windows XP Home Edition. It is specifically built
to serve,or run,ASP.NET Web pages under the local host scenario
(browsing from the same computer as the Web server). In other words,
the ASP.NET Development Server will serve pages to browser requests on
the local computer. It will not serve pages to another computer.
Additionally,it will not serve files that are outside of the
application scope. The ASP.NET Development Server provides an
efficient way to test pages locally before you publish the pages to a
production server running IIS.The ASP.NET Development Server only
accepts authenticated requests on the local computer. This requires
that the server can support NTLM or Basic authentication.
如果您希望远程测试页面,您将需要使用IIS或IIS Express.