我有一台运行IIS 6的旧Windows 2003服务器,我选择.net 4.5作为我最新的网络应用程序.问题是我无法让它在服务器上运行...
安装了.NET 4.0框架.我运行了aspnet_regiis并部署了网站.我给它自己的应用程序池.但是我收到以下错误:
The 'targetFramework' attribute in theelement of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, ' '). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
我看到.NET 4.5的要求需要Windows Server 2008或更高版本,但是我看到很多人只需要为MVC4配置路由,所以看起来这应该是可能的.
所以我需要做些什么才能让它发挥作用?
编辑:奇怪的是我们正在使用一个工作得很好的ASP.NET Web API站点...但这应该需要.net 4.5 ...