开发者

How to Access Visual Studio Development Server from a Virtual PC?

I've installed the WindowsXP_IE6.0 vpc from here: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11575

I have an asp.net application and ran it locally:

http://localhost:22159/开发者_StackOverflowPages/Home.aspx

How could I access this application from the Windows XP vpc?

I've enabled Shared Networking (NAT) for the Virtual Machine and it can only access the internet.

When navigating to the above application page, it gives me the error message that "The page cannot be displayed"

I think the reason is that localhost refers to the vm localhost rather than the host. I also tried it with the host computer name but the same error

http://hostComputerName:22159/Pages/Home.aspx

How could I configure this?

I may have to setup the application on IIS then it may help accessing it from the vm; not sure.

Many thanks,


I have never been able to get the ASP.NET development to serve pages to remote machines either (assuming that this is because this product is for development and not intended for production websites) and normally setup a website under IIS to host the application in.


The solution is here: http://pooyakhamooshi.blogspot.com/2011/08/connect-to-host-iis-from-virtual-pc.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜