Search code examples
.net.net-4.0publishhostwebmatrix

Publish a website. net 4.0 on a host with. net 3.5


Develop a site on WebMatrix and am trying to publish it.

On the host they hired to support the .net framework 3.5, and the site runs on the .net 4.0.

Is there any way to make it work in 3.5.

In WebMatrix have the option of exchanging .net 4.0 to 2.0 and there's no way to switch to 3.5, with .net 2.0 does not work.

You already paid by the host, then it is not possible to change host.


Solution

  • The whole of the Web Pages (Razor) framework is compiled against .NET 4.0. You cannot get ASP.NET Web Pages sites to run unless .NET 4 is installed on the web server.