ApplicationHost.config error with IIS7, Dot Net 1.1 and Windows Server 2008 Service Pack 2

We came across a very odd issue today where the following error message would be displayed within IIS.  The error message itself is not terribly helpful as usual, and there are no other error messages records in any event logs or log files.

 IIS7 Error

This was happening whenever any of the configuration options in IIS7, on a site where the application pool was running Dot Net 1.1.   I immediately spent hours poring over applicationHost.config, as well as any web.config files and configuration files on the server.  Over a day later, after rebuilding the server and IIS7 multiple times I was starting to come to the conclusion that it might be something I had installed, so I ran up another server as a controlled test.

I did this in the following order :

  1. Install Windows Server 2008 Web Edition off a media set that I knew was good.
  2. I installed Windows Server 2008 Service Pack 2.
  3. I installed any missing Hotfixes as determined by our WSUS Server.
  4. I installed IIS using the Web Platform Installer
  5. I installed Dot Net 1.1 and assorted Dot Net 1.1 Service Packs and hotfixes.
  6. I opened IIS, set the default web site to the "ASP.NET 1.1" application pool.
  7. I opened the Default Web Site configuration in IIS manager and attempted to view Handler Mappings.

At this stage the server was a vanilla install with no code on it and I was able to generate the same error as above, and the problem must be one of the above steps.  As we have other Dot Net 1.1 servers running Windows Server 2008 I quickly had a look at their configuration and only one thing stood out – none of them had Windows Server 2008 Service Pack 2.  I immediately uninstalled the Service Pack to see if it would have any effect.  Immediately I was able to browse and modify configuration settings in IIS7!  The question still remains as to what in the Service Pack was causing the problem.  Unfortunately we still have some clients who need to use Dot Net 1.1 and until a resolution or hotfix comes forth, we will not be using Service Pack 2 on any of those servers.

If you come across the error it will only manifest in these conditions and can be resolved quickly by a removal of Service Pack 2.

  • IIS7
  • Windows Server 2008 Service Pack 2 
  • Dot Net 1.1 installed and application pool of Site set to use Dot Net 1.1
  • Trying to view or modify configuration data for the Site

Hopefully this will help a few people to spend less time butting their head against a wall than I did.

About these ads

4 Responses to ApplicationHost.config error with IIS7, Dot Net 1.1 and Windows Server 2008 Service Pack 2

  1. Alex says:

    Hi Mark

    Did you ever find a fix for this? Having exactly the same issue on Win2008Svr but not on the same setup in Win7.

    Thanks,

    Alex

    • Mark Rhodes says:

      Hi Alex,

      From memory Microsoft released a hotfix that resolved this, however I cannot find the link for it anywhere!

      It was in the comments on my old blog, so if I can find it and dig it out I’ll update my post.

      Mark

      • Alex says:

        Thanks for trying Mark, if you can find it it would be useful as it would mean I can move away from the workaround although we should be off of .Net 1.1 by the end of the year so no big deal.

        Cheers,

        Alex

  2. Alex says:

    Arrgh! Am guilty of one of my own pet hates, not re-posting when I’ve found an answer! Apologies!

    So, it’s a bit of a workaround rather than an answer but this worked for me…

    http://blogs.iis.net/wonyoo/archive/2009/06/18/workaround-running-asp-net-1-1-on-vista-sp2-ws08-sp2.aspx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,964 other followers

%d bloggers like this: