Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Manager can't configure .NET Compilation on .NET 4 Applications

i tried to configure the .NET Compilation Settings in the IIS Manager but all i see is an Error Message that tells me that there is an unrecognized element in the web.config file in C:\windows\Microsoft.NET\Framework64\v.4.0.30319\config\.

A little bit strange for me is, that i get this error message on my Windows 7 System and also on a Windows Server 2008 R2.

While googling around a little bit all i found is this blog entry http://olegtarasov.me/2010/09/nastrojka-iis-7-5-i-asp-net-4/. I tried the aspnet_regiis -i -enable command but that was not the solution for me.

like image 411
Noffls Avatar asked Sep 17 '10 19:09

Noffls


People also ask

How do I enable .NET 4.5 in IIS?

Enabling Windows Internet Information Services (IIS)At the upper-right of the screen, select Manage and then select Add Roles and Features. In the Server Roles tab of the Add Roles and Features wizard, check the Web Server (IIS) box.

What version of .NET does IIS use?

NET Framework 4.5 is the default . NET Framework for use by Windows Server 2012, the "DefaultAppPool" on IIS 8.0 also defaults to using the newer version of the . NET Framework.


1 Answers

Ok, i've got it.

The Problem is, that my systems a 64 Bit systems and the aspnet_regiis i've called was the 32 Bit Version. After calling aspnet_regiis from the Framework64 Directory everything was fine.

Thanks to Scott Hanselman http://www.hanselman.com/blog/ASPNET4BreakingChangesAndStuffToBeAwareOf.aspx

like image 193
Noffls Avatar answered Sep 20 '22 06:09

Noffls