Search code examples
c#asp.netwindows-server-2008

Windows Server 2008 Application Pool set to .Net 4


I am trying to deploy an MVC application to a server with the correct versions of .NET installed, the application pool has been set to .NET 4 but the error says .NET 2

Have a look at the screen shots below, maybe you can point me in the right direction

enter image description here

and

enter image description here


Solution

  • The server probably does not have the 4.5 framework installed. Both 4.0 and 4.5 MVC applications will run under the 4.0 app bool but if your application is complied against 4.5 you will need that installed on the target server.