WiredWorx || Web design || SEO || Bournemouth

Web design, website development and search engine optimisation (SEO) in Bournemouth, Dorset, UK.

Problem when trying to run site in visual studio


It seems that Microsoft in their wisdom altered Defender, on the 9th March which means that Windows Defender mistakenly raised the Win32/PossibleHostsFileHijack alarm deleting the crucial mapping between localhost and 127.0.0.1!

Therefore when you try to run a website from within Visual Studio you are confronted by the error (in forefox):

Failed to Connect
The connection was refused when attempting to contact localhost:49408.
Though the site seems valid, the browser was unable to establish a connection.
* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.

OR:

Internet Explorer cannot display the webpage
Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.


In Internet Explorer! The answer is to create a new file called 'hosts' in notepad, and upload it to: C:Windowssystem32driversetchosts