I have a website setup in IIS and i add web application under the website. I publish and copy an existing a .Net web application files (aspx file format) over to the web application folder.
When i try to browse the web page from IE, it says
"Protocol Type: localhost"
"Windows does not recognize this Protocol."
When i try to browse from firefox, it says
"The address wasn't understood"
"Firefox doesn't know how to open this address, because the protocol (localhost) isn't associated with any program."
but when i go to url and click enter (Refresh doesn’t work) from firefox, the page works and show the content.
Can anyone please point me the direction of fixing this issue?
Browsers look in the beginning of the URL for the protocol that they should use when opening a specific link (And most have functionality to execute other programs if the protocol is not one they understand).
Normally, the protocol is something like “http:”, “ftp:”, “file:”, “irc:”, etcetera.
The protocol is delimited by a colon. Your use of localhost:80/… is tripping the browser into thinking that the protocol you are trying to use is “localhost”, which is not correct. If you were to leave the port number out, chances are the browser would assume HTTP with default settings (port 80) and it would work fine, seeing as most browsers will assume HTTP if the protocol is not specified.