Developer forum

Forum » Development » Localhost setup once again

Localhost setup once again


Reply

Once again I have to set up a local solution on my colleagues pc and it keeps failing. so after spending a couple of hours troubleshooting, I decided to post here.

 

The IIS folders are set up just as usual no real changes there.

 

We are able to access the frontend via http://hpcoder/Default.aspx which is the machines name but if we try to use http://hpcoder/ we get a 404 not found error and the  page redirects to: http://hpcoder/Admin/Public/404.aspx?404;http://hpcoder:80/

 

same thing when I try to access admin http://hpcoder/Admin

 

What could cause this error?

 

- Sune


Replies

 
Nicolai Høeg Pedersen
Reply
sune@fonqi.dk wrote:

Once again I have to set up a local solution on my colleagues pc and it keeps failing. so after spending a couple of hours troubleshooting, I decided to post here.

 

The IIS folders are set up just as usual no real changes there.

 

We are able to access the frontend via http://hpcoder/Default.aspx which is the machines name but if we try to use http://hpcoder/ we get a 404 not found error and the  page redirects to: http://hpcoder/Admin/Public/404.aspx?404;http://hpcoder:80/

 

same thing when I try to access admin http://hpcoder/Admin

 

What could cause this error?

 

- Sune


Hi Sune

 

Sounds like you are missing Default.aspx in the default documents list: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/dc6eb1b4-9028-4308-9935-52b64edfad36.mspx?mfr=true

 

When this happens, it could be that asp.net is not installed correctly, or in the wrong order (.net 2.0 first, IIS as second). This might give you some permission errors later on.

 

So a better fix would probably be to run aspnet_regiis instead which will also fix the default document issue.

 

Run this from the command prompt:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i

 

 

You must be logged in to post in the forum