Click here to Skip to main content
14,271,421 members
Rate this:
Please Sign up or sign in to vote.
See more:
OK, this is odd and I am sure I have forgotten something very basic here but...

I created and published a new website using VS2010 with a 'place holder' home page (Home.html) which is so basic it is untrue.
I have set this as the start page in my project and tested it in local-host and the 'Place holder' page renders just fine.
I have published it to our IIS server and when I go to http://url/page.html it works but when I go to http://url/ I get an error 404 page does not exist.

What stupid error have I made? It is set as the start up page in the project.
I have added it as a default document in IIS also even though I don't think I needed to.

I maintain lots of websites but this is the first new one I have published for a while... someone help a forgetful old fool out...!

Thanks
Posted
Comments
Richard Deeming 1-Dec-15 6:03am
   
You do need to set it as the default document in IIS. The "start up page" is specific to the Visual Studio project, and IIS doesn't know anything about it.

Try loading the site from a browser on the server, which should give you a more detailed error. Alternatively, use Failed Request Tracing[^] to trace the failed request and see what's going wrong.
Wombaticus 1-Dec-15 6:05am
   
If it's called home.html why are you calling it with http://url/page.html? That aside, it's most likely you haven't configured IIS correctly, but without knowing what you've done there it really isn't easy to say much. But basically:
Have you application in a new folder;
Convert this into a web application in IIS;
You can test browsing to it within IIS - and check the URL it uses there.
dnibbo 1-Dec-15 6:21am
   
Sorry I was just using that as an example.
When I type the full URL with the page name it works fine but when I type just the URL it does not load the start page that I have selected in the Visual Studio project.
I will run the browse from IIS and see what I get.
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100