Last post May 26, 2008 11:09 PM by tonymuffin
May 26, 2008 04:03 PM|tonymuffin|LINK
I have seen numerous posts all over the internet Application log message. I should point out that I am not an IIS guru by any means. I occasionally receive this message in the Application log both for ASP.NET 2.0.50727.0 and ASP.NET 1.1.4322.0. Typically
however, when the message does appear it is regarding ASP.NET 2.0. All of the websites on my IIS server are running under ASP.NET 1.1 except for one which runs under 2.0. The reason it is running under 2.0 is specific to a calendar control I have on one
of the pages that requires 2.0. I am assuming when I receive the Application log message it is a result of this. However, there is nothing in the Event Viewer logs that explicitly says what application or what is causing this error.
1. Is there somewhere I can look to see exactly what is causing this when it happens? Who is hitting what? What is someone trying to do that causes this event? The sites and pages all work fine as far as I can tell so I am not sure what is happening when
this message appears or where it is coming from. The message may appear once a day or may go for weeks before appearing.
2. How do I fix this?
May 26, 2008 04:16 PM|mbanavige|LINK
you cannot run 1.1 and 2.0 apps in the same app pool simultaneously. whichever one starts first sets the framework version for all apps in the pool.
for your 2.0 app, you would want to create a separate app pool in iis and then assign that app pool to the 2.0 app. This is all done as settings in IIS. If you need help with those IIS settings, you can post those questions at
http://forums.iis.net/ (same login as here.)
May 26, 2008 04:19 PM|tonymuffin|LINK
I appreciate the quick response and yes, I am very aware of that. All the information on the internet states that. I am still looking for an answer to my questions, specifically quesiton #1
May 26, 2008 05:06 PM|bdaviduck|LINK
I recently had a similar problem (running two sites on the same server - one under v1.1 and another under v2.0 of the framework).
I posted the step-by-step solution at:
Basically, as stated, you cannot run version 1.1 and version 2.0 in the same application pool. You must set-up a different pool for your v2.0 site.
I hope that helps.
May 26, 2008 10:34 PM|mbanavige|LINK
I am very aware of that
OK. Does that mean that you created another app pool for your 2.0 app?
To answer your questions more specifically:
1. Is there somewhere I can look to see exactly what is causing this when it happens?
You need to look in IIS to see which apps are assigned to which app pools. If you have 1.1 and 2.0 apps setup in IIS to use the same app pool, (perhaps the default app pool) then you will get errors if you try to run both apps in the app pool at the same
time. By default, the apps would all use the Default app pool and therefore by default, running 1.1 and 2.0 apps on the same server will cause errors. You have to take a specific action to avoid the error when you are using more than one version of the framework.
2. How do I fix this?
You would create a new app pool in IIS and assign all 2.0 apps to the new pool to keep them separate from the 1.1 apps.
May 26, 2008 10:46 PM|tonymuffin|LINK
It appears that everything is under the DefaultAppPool including the website that requires .NET 2.0.
So to be clear, you are saying to create a "new" AppPool specifically for ASP .NET 2.0 and move my website that requires 2.0 to it? Are there steps on how to do this? Would I remove the website requiring .NET 2.0 from the DefaultAppPool after?
May 26, 2008 10:53 PM|mbanavige|LINK
you are saying to create a "new" AppPool specifically for ASP .NET 2.0 and move my website that requires 2.0 to it?
Are there steps on how to do this?
Yes but since this is related to IIS settings, there are no FAQ's here. Perhaps at the IIS forums this may be documented as an FAQ.
Would I remove the website requiring .NET 2.0 from the DefaultAppPool after?
The IIS settings allow you to select a single app pool for each application. It's a setting for the app itself. So selecting a different app automatically removes it from the other app pool it was assigned to.
May 26, 2008 10:56 PM|mbanavige|LINK
give this a read:
May 26, 2008 11:09 PM|tonymuffin|LINK
Ok, here are the steps I did:
If this is all correct, then this is actually pretty simple. Thanks for all the help!