I am doing a web project using visual studio 2010(MVC3 Razor) and Windows 7.
My default browser is IE. When I run the project, the website working is perfectly with
Changing my LAN network settings to not automatically detect a proxy server worked for me BUT resetting your Windows network stack may help.
See The Nuclear Option: Resetting The Crap Out Of Your Network Adapters in Vista from Scott Hanselman.
For Firefox:
I faced the same issue and the complete solution is to set to false(uncheck) the "Automatically detect settings" checkbox from Lan Area Network( the same window as for Bypass proxy server for local address )
You need to disable Script Debugging In Visual Studio
I found that when I had this issue that I had to delete the application.config
file from my solution. I was pulling the code from co-worker's repository whose config
file was mapping to their local computer resources (and not my own). In addition to that, I had to create a new virtual directory as explained in the previous answers.
For all browsers,
internet Options
(or Internet properties) connections
tabLAN Settings
Use proxy server for your LAN
Bypass proxy server for your local address
(Don't change the port number)Ok
Now you are good to go. :)