我有一台运行着IIS 6的旧Windows 2003服务器,我选择了.NET 4.5作为我的最新Web应用程序。问题是我无法在服务器上运行它...
.NET 4.0框架已安装。我运行了aspnet_regiis并部署了网站。我为它分配了自己的应用程序池。但我收到以下错误:
The 'targetFramework' attribute in the <compilation> element of the Web.config
file is used only to target version 4.0 and later of the .NET Framework (for
example, '<compilation targetFramework="4.0">'). 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...