Score:0

IIS (10.0.17763.1) New Site Fails with 404 Errors

in flag

I am hoping that someone may have the answer to this. I created a new site on IIS (full disclosure, I created the first one incorrectly and removed it, if that matters).

My IIS server has several hosted sites, all working fine, apart from the new one.

I am to start with trying to access a static file index.html

  • The application pool is set as default, the same as the other sites.
  • The Path credentials are set as an admin account; I get the two green ticks.
  • I have even tried setting this website to one of the other website paths to test the file access and get the same 404 error! Weird.
  • I have checked that the file I am accessing has the correct extension. There is nothing in the log file being generated for this site. Tried a custom path for a log and still nothing.
  • With just the root address http://www.example.com/ I get the IIS default welcome page.
  • I tried renaming the default websites bindings to the new site name to try and use that directory. Same result, 404.
  • Sites restarted. Server restarted.

I am totally at a loss and have googled silly.... any help greatly appreciated. Its a very odd error and I still wonder if its remembered something about the original site i created and deleted.

cn flag
Find out the http sub-status in the http logs of the site, it is the number to the right of the `404`. Then look up the meaning of the sub-status.
in flag
Thank you. I found it, it was actually a DNS error and a missing binding diverting to a default site.
Lex Li avatar
vn flag
If you found the answer, you should post and accept it below or simply delete the question.
Score:0
us flag
Rob

NO idea if this will help anyone but remember that Windows by default will hide extensions. If you create a brand new server, and create a new IIS site, and create a test page in notepad, the test page will be saved as .txt file. IIS won't read it. And you won't know that because by default the extensions are hidden. Newbie mistake but hard to catch.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.