开发者

Changed a page from ASPX to HTM(L) but IIS points to ASPX regardless

We recently rewrote our company hom开发者_运维知识库epage 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?


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.


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?


Check the Default Page on the Website/Virtual directory in Question, and if it exists remove the reference to manangement.aspx.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜