ASP.NET 1.1 on IIS 7 using handler mappings

The problem I was experiencing was that I could not set any custom handler mappings in IIS 7 because it would add a <system.webServer> tag to the web.config of my application. This would crash my asp.net 1.1 app because it doesn't understand the tag. So there I was wanting to use the new IIS 7 and not being able to set any custom handler mappings because they would be stored in the web.config of my application.

But there is a solution to this problem! You need to add a line to your machine.config in order for asp.net to ignore the above tag.

1. Go to the machine.config file for your .net 1.1 framework (C:\Windows\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config)

2. Add the following line to it just above the </configSections> closing tag

    <section name="system.webServer" type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

Et voila, there you go. The best of both worlds, if you need to debug 1.1 apps anyway.

Tags:

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Björn Bailleul

Web application engineer and developer interested in creating customer centric applications build for ease of use and efficiency. My experience goes from intranet applications to widely used service websites, product portfolios and e-commerce websites.

Specialties

C#, MVC, AJAX, ASP.NET, SQL Server, SQL Reporting Services, WCF, XML, HTML, JavaScript, CSS, Web Services, Scrum, ...

View Bjorn Bailleul's profile on LinkedIn

Month List