无法链接到visual studio的Localhost web服务器
我在调试vs的时候,调试不是用IIS的,是用文件系统的,以前调试都没问题,但最近一直出现“无法链接到visual studio的Localhost web服务器”?
这到底是哪里出了问题了啊?百思不得其解!!!!!!!!!!!
------解决方案--------------------
你可以使用IIS来调试。
在web项目上右键菜单点属性。
Web页的Server栏目选择 "Use IIS Web Server",在Project URL输入IIS中Virtual directory。
如果你还没有创建Virtual Directory可以,可以通过Create Virtual Directory按钮栏创建。
------解决方案--------------------
如果你一定要用VS2005带的web server.
参考一下下面的看有没有帮助:
http://blogs.msdn.com/rahulso/archive/2006/07/11/unable-to-connect-to-visual-studio-s-localhost-web-server.aspx
还有一个人是这样解决的:
1) I reinstalled Microsoft .Net 2.0 and Visual Web Developer 2005 Express Edition.
It didn't help.
2)I did the following:
in the command prompt I typed:
C:\>cd WINDOWS\Microsoft.NET\Framework\v2.0.50727
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis –i
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>iisreset
It worked! The message "unable to connect to.." is gone!
P.S. Now, I'm not so sure.
It worked on very simple site, but when I tried to run a Personal Web Site, created by Visual Web Developer, it gave me the same message "unable to connect...". And, by the way, you have to do the two steps (aspnet_regiis -i, and iisreset) every time before starting Visual Web Developer.