Friday 8 February 2008

ASP.NET Event ID: 1062 - confused SBS2003 server

So one of the SBS2003 servers I manage bleated at me this morning that it didn't know which ASP.NET it should be using 1.1 or 2.0. At which point it duly filed an error in the Event Viewer and kicked everyone out.

Source: ASP.NET 2.0.50727.0
Event ID: 1062
It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process.

We had a new application loaded this week from one of the suppliers and part of it relies on ASP.NET v2.0. Turns out it dropped into the DefaultAppPool along with some SBS specific applications; Backup, Monitoring and Remote. These rely on ASP.NET 1.1 and I found the tip-off in Scott Forsyth's blog about keeping your ASPs in separate pools.

The solution is to create a new application pool (called KxEntiretyPool in this case) - see the screen shot - using the DefaultAppPool as the template. You can then go down into the Web Sites section, into Default Web Site and open the Properties for your new application. Simply change it over from DefaultAppPool to the new application pool and restart the Web Publishing service.

No comments:

Trust 1&1 Internet for your domain name registration, from only £1.99/year!. Check now!