Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set .net Framework 4.5 version in IIS 7 application pool

I installed the Visual Studio 11 Beta and suddenly all the async action methods I had created under the VS 11 Developer preview started hanging (apparently this issue: http://blogs.msdn.com/b/pfxteam/archive/2012/03/03/10277166.aspx).

My app is using v4.0.30319 as the Framework Version, but there is no option to use 4.5. I repaired my .net 4.5 install to be sure, but nothing. Is there a way to configure this in IIS? Do I need to bin deploy the files (and if so which)?

like image 937
Gene Reddick Avatar asked Mar 04 '12 22:03

Gene Reddick


People also ask

How do I install .NET Framework 4 to application pool?

Expand the server name, and select Application Pools. Select the app pool, and open the Basic Settings. Set the . NET CLR version to the newer version, and select OK to save your changes.


2 Answers

There is no 4.5 application pool. You can use any 4.5 application in 4.0 app pool. The .NET 4.5 is "just" an in-place-update not a major new version.

like image 81
Peter Kiss Avatar answered Sep 22 '22 10:09

Peter Kiss


Go to "Run" and execute this:

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir 

NOTE: run as administrator.

like image 28
Vitor Sousa Avatar answered Sep 24 '22 10:09

Vitor Sousa