W2K3+Sp1: All requests return 404

M

Matthew Speed

My testing server has W2K3 installed and a copy of my websites. When
I installed SP1 on it all the websites stopped serving pages.

I have confirmed through IIS manager that the sites are pointing to
the correct directories on the hard drive.

When I try to access anything via IIS, an entry is created in the IIS
Logfile for the request with a 404 status code and then said 404 error
is returned to the client. I tried creating a new site on the same
box and the same thing happens.

I'm completely confused. IIS is receiving the request because it
creates a log file entry for it but it is somehow unable to retrieve
the requested page or graphic.

Any advice?
 
K

Kristofer Gafvert

What is the substatus code and sc-win32 status code for such request?

Do you have URLScan installed?
 
M

Matthew Speed

What is the substatus code and sc-win32 status code for such request?
2 and 1260. (BTW...I don't know what these mean yet. I am about to
look them up and learn about this. IIS Admin is not one of my strong
areas.)
Do you have URLScan installed?

No.
 
K

Kristofer Gafvert

404 with substatus code of 2 means that the extension is mapped to a web
service extension that is not allowed. You say that this happens for image
files, and these files are treated as static files by default, so you must
have changed something.

So you have a misconfiguration. Either the mapping is correct, but the web
service extension is not allowed, or the mapping is incorrect and you need
to fix that.

To allow a web service extension:

Click Start->Programs->Administrative Tools->Internet Information Services
Manager
Expand <servername> and click Web Service Extensions
In the right pane, right click the web service extension and select Allow


To look up mapping of an extension, right click the web site/folder (it
depends on where the mapping is done) and click properties. Click on the
Home Directory tab, click the configuration button.
 
M

Matthew Speed

404 with substatus code of 2 means that the extension is mapped to a web
service extension that is not allowed. You say that this happens for image
files, and these files are treated as static files by default, so you must
have changed something.
I guess it technically was me. The only thing I did between working
and not working was apply SP1.
To allow a web service extension:

Click Start->Programs->Administrative Tools->Internet Information Services
Manager
Expand <servername> and click Web Service Extensions
In the right pane, right click the web service extension and select Allow
Okay, I went into Web Service Extensions. gif/jpg/png are not listed
extensions, neither is htm. I tried to add those but I don't know
what programs are required to make these servable extensions.
Additionally, ASP pages did not work even though they were marked as
allowed.

I clicked on the link entitled "Allow All Web service extensions" and
wha-la! my sites all work. Thanks for pointing me in the right
direction.

Something deep in IIS is obviously messed up to cause these files to
not work until I turned on "Allow everything."

If anybody knows more about this I'd be very interested to hear it as
I really don't like the security hole of "Everything allowed" to exist
any longer than necessary.
 
K

Kristofer Gafvert

You went to the wrong place.

To look up mapping of an extension, right click the web site/folder (it
depends on where the mapping is done) and click properties. Click on the
Home Directory tab, click the configuration button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top