tags:

views:

123

answers:

2

We recently rewrote our company homepage and have come across a peculiar error. We have very few pages that need any code behind them, so we wrote the website in static HTML served out of IIS6. The few pages that need any code (Contact Us, with a contact form, for instance) are .ASPX pages.

The previous version of the website had more .ASPX pages, even if there was no code in the code-behind. One of those pages was "management.aspx", and in the new site this is, logically enough, "management.htm". We're smart enough to not just change the file extension -- we rewrote everything, it just has the name in common.

Here's the peculiar part: Even though every link in the entire website points to "management.htm", IIS6 continues to try and serve "manangement.aspx". I've reset IIS, stopped/started the Default Web Site under IIS6, deleted pages from "Temporary ASP.NET Files" and deleted out temporary GZIP files from the server as well. This isn't MVC or anything, so we have no explicit URL routing, and while I can see us having to implement static file handling in our web.config httpHandlers, I can't imaging that being a necessity.

What gives? Why is IIS6 still trying to serve the old "management.aspx" page when we're explicitly asking for "management.htm"? What can I do to fix it?

A: 

Check if you still have the bin folder in the root of your site.

Do you get a 404 because it tries to load management.aspx and it's not there?

LymanZerga
Yes, exactly...only its a YSOD because we're not handling the 404.
nathaniel
+1  A: 

Your bindings have to be off somewhere... check top level for *, *.htm, managment.htm, etc. Then check virtual directories.

If you paste "http://yoursite/management.htm" in your browser and you get a YSOD, this is an IIS issue for sure.

Bryan