IIS Insanity

(fair warning)Once again I’m going to complain about a Microsoft product.(/fair warning)

I’m working on asp pages (for work – the pages here are php, which is much friendlier), and for the past day I’ve been fighting some strange problems where included pages weren’t being updated when I’d made changes to them. Included pages let you do things like write the top-of-page stuff, headers, database connections, styles – and then just include them in any new pages you create. But the problem was, when I made a change, nothing would happen!

Somewhere on the web (can’t find it now, of course) I read that if you resave the (unmodified) page that includes the modified page, it would work. And it did – but then I had to keep saving ALL the pages any time I made a change to an included page – sorta defeats the purpose.

Tried all sorts of things I found on the web, settings in the IIS Webserver, trying to get it to work. Nothing. So finally I restarted the webserver – when in doubt, restart.

Now ALL of my web pages are failing. Including the ones customer support people need to do their job. Much hilarity ensued in the form of people coming in to tell me, “do you know the web pages are down?” and me jumping up and down and screaming. Lucky I have no hair to pull out.

I won’t keep you in suspense – turns out one of the settings I changed, tho it had an Apply button, didn’t actually get applied till I restarted the webserver. And it’s a setting that should not be changed if you want your ASP pages to keep working. And it’s typically three levels down in webpage setup/configure…/advanced… Fortunately, I found this answer on the web – “If you get this error, try this”.

Kids, don’t try this at home. Save yourself, get an OSX server and PHP.

Leave a Reply