IIS 7 and Above
ASP.NET v2.0 and IIS7
Last post May 19, 2011 09:59 PM by Rovastar
May 18, 2011 05:08 PM|NDLanding|LINK
I'm having trouble trying to get an asp.net 2.0 application going on a PC running IIS 7 (either using Integrated or Classic mode). The app I'm trying to run is just a simple Hello World and it works fine when run via VS2010 (e.g. in Debug mode). The app
was created using the default VS2010 template targeted against .Net v2.0.
If I look at the Handler Mappings sections from within IIS at either the server level or Default Web Site level all I see are references to v4.0 (e.g. PageHandlerFactory-Integrated-4.0, PageHandlerFactory-ISAPI-4.0_32.bit, PageHandlerFactory-ISAPI-4.0_64.bit...etc.).
Under Application Pools there is a pool listed called "Classic .NET AppPool" whose .NET Framework Property is set to v2.0 and whose Managed Pipeline Mode is set to Integrated and I also see a directory aspnet_client\system_web\2_0_50727 listed under the Default
Web Site so I'm assuming v2.0 is installed (see below also).
If I create either a new Site or Virtual Directory and application specifying the v2.0 pool the Handler Mappings still all point to v4.0.
Do I have to manually change each mapping to point to v2.0 or should this happen automatically somehow?
In addition to Handler mappings changes are there any changes I need to make to the apps web.config that is created by default in order to get it to run?
I've given IUSR, IIS_IUSRS and NETWORK_SERVICE groups full permissions on the directory involved in an effort to preclude any security issues.
I'm not sure how you tell what versions of the framework are installed and correctly working. I can see v2.0.50727, v3.0, v3.5 and v4.0.30319 all listed under %windir%\Microsoft.NET\Framework64 and in addition to these v1.0.3705 and v1.1.4322 listed under
%windir%\Microsoft.NET\Framework. I ran "aspnet_regiis -lv" from within %windir%\Microsoft.NET\Framework64\v4.0.30319 and %windir%\Microsoft.NET\Framework\v4.0.30319 and I get the following response:
If I run the same command from within %windir%\Microsoft.NET\Framework64\v2.0.50727 or %windir%\Microsoft.NET\Framework\v2.0.50727 I get the following response:
Cannot find any installed version.
I tried re(installing) v2.0 using "aspnet_regiis -ir" but I received a fatal error (and which failed again despite the workaround suggested at
I'm a real loss - I never thought it would be so difficult to set up (as compared to IIS5/6).
PS I have managed to get a v4.0 app running under the Default Web Site which is running under the v4.0 DefaultAppPool so I know that works.
May 19, 2011 09:59 PM|Rovastar|LINK
Well if you cannot reinstall .net 2.0 you have more serious problems and I would suggest a rebuild of the PC . But I would try removing .net 4.0 first and see if you can the install .net 2.0. BUt you have a lot of .net versions seemingly installed that could
cause issues maybe, why do you have so many?! .net 1.0 framework?!?!