I like to work at home, and my set up at home is almost at good as work, but due to less distractions it can be better. When I created a TFS workspace for my home computer (was Vista, now Windows 7), I got the latest source, built it, and all was good… almost. It did not run. We are building an ASP.NET application and when running under the ASP.NET Development Server (WebDev.WebServer.exe) I would get sent to this error page, which told me nothing useful about why it was failing.
This was irritating, but didn’t really bother me because I could work around it quite quickly. I opened the Web properties of the ASP.NET Web Application project (right click the project, select Properties and then the Web tab on the left) and set it to run from the Local IIS (Internet Information Services) Web server. The only issue this had was I must run Visual Studio as an Administrator since I have User Account Control (UAC) enabled, and I don’t get Edit and Continue.
Today however, this won’t do. Today I want to create a new workspace on my home machine to work on multiple unrelated things at the same time. Multiple workspaces is a great productivity boost, from reproducing issues locally in an unchanged environment, to running units tests or other long running processes and working on something else while they are chugging away. I do not want to create multiple virtual directories in IIS, although I could. One of the things I like about the environments I have set up, is that they allow virtually no configuration on any PC you want to use, as long as you have Visual Studio with Team Explorer, you are ready to develop. And our rich wiki requires OneNote and that is all. Both enable also enable working offline and starting new developers or changing PCs is very easy. I thought it might be related to UAC or the firewall, but after a quick look around and I found ASP.NET Developer server not working which lead to IE won’t connect to asp.net server which had the solution. Opening up Notepad as Administrator (since I have UAC on) loading the C:\Windows\System32\drivers\etc\hosts file and commenting out the line ::1 localhost, restart only the browser instance that failed and all is working.
Now Visual Studio does not need to run as Administrator, I do not need to configure IIS, I can have Edit and Continue and multiple workspaces all running completely independently.
didn’t work for me man, but thanks anyway
I’ve solved my problem, it was in the host file. I just had to remove the comment(the character ‘#’) on the line
127.0.0.1 localhost. I am using visual studio 2010 with windows 7, I hope it can help somebody else because this problem is a headache.
I have the same problem with VS 2010. Still i am unable to resolve the issue. I changed host file also. Plz let me know any other reasons for this issue
Iriving, i had the same problem with the host file with the same setup. Spent 4 hours trying everything under the sun to fix it. Dont know what would have changed in the last month to cause this problem, but thanks for the solution.
Thank you for this guys, it saved me hours of headache!
Best solution is put a debugger at first place in the code, like either at application start or page_init/page_load etc. Then try to debug. Sometimes there is issue in the code which can be identified through debugging.