Evonet
Evonet

Reputation: 3640

ASP.NET MVC Method not found: 'System.Version System.Web.HttpRuntime.get_IISVersion()'

I have an MVC site using Entity Framework 5.0 running on an IIS 7.5 web server. The site works well on my local machine, but when I upload it to the webserver I get the error:

Method not found: 'System.Version System.Web.HttpRuntime.get_IISVersion()'.

The site is running on its own integrated pipeline and I have other MVC sites running on the server without a problem.

Any ideas?

Upvotes: 3

Views: 1089

Answers (2)

Evonet
Evonet

Reputation: 3640

This was fixed with a reinstall of the asp.net 4.5 framework.

Upvotes: 1

Fals
Fals

Reputation: 6839

You must register the .NET Framework version after the installation.

1) Open a cmd window as Admin and go to the Framework v4.5 installation dir in your server and execute aspnet_regiis.exe -r

c:\Windows\Microsoft.NET\{Framework}\v4.5 /*The default folder is something like this*/

2) Go to the IIS and then change the .NET version from the current Pool where the Application is hosted.

Upvotes: 0

Related Questions