cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Japster24
Level 6

IIS .NET Framework version incorrect

On new installs, the NET 2.0 framework is being selected by default in the ISS Application pool (Server Configuration -> Internet Information Services -> Application Pools). Our ASP samples must have the .NET 4.0 framework or it will not run.

I found a command line that will update the framework version in the app pool, but hope that InstallShield has a place to do this instead. appcmd set apppool /apppool.name:MyAppPoolName /managedRuntimeVersion:v4.0 (source: http://technet.microsoft.com/en-us/library/cc754523(WS.10).aspx)

Anyone?
-jp
twitter.com/buildgeek
http://buildgeek.com
Labels (1)
0 Kudos
(3) Replies
Japster24
Level 6

I figured this out using Custom Actions. If you're curious, see my blog post about it here:

http://buildgeek.com/2011/04/iis-app-pool-and-net-framework-ver/

-jp
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

This setting is available on an Application Pool; it's called .NET Framework Version. Per your screenshot in the blog it does not look like you're running InstallShield 2011. Are you on a version before IS2010 when we added this?
0 Kudos
nhenny2008
Level 3

I have an application pool that is created with IS and I have the .NET Framework Version set to v4.0...however it doesn't work every time. I have several servers that I have to go into INETMGR and change the application pool from 2.0 to 4.0...are there any known issues with this setting? Other servers it works just fine.
0 Kudos