[英]How can you get a .NET 4.5 website to run on IIS6?
我有一台運行IIS 6的舊Windows 2003服務器,我選擇.net 4.5作為我最新的網絡應用程序。 問題是我無法讓它在服務器上運行...
安裝了.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 ......
.Net 4.5無法安裝在Windows Server 2003上。
相反,你應該在.Net 4.0上使用MVC 4.0,這將工作正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.