【发布时间】:2016-04-29 07:59:22
【问题描述】:
由于以下错误,我的应用程序无法部署:
Web deployment task failed. (The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v2.0'. This application requires 'v4.0'.)
现在,我正在尝试将我的 .NET 应用程序部署到 IIS。 VS 正在尝试以“DefaultAppPool”应用程序池为目标。我希望它改为针对“ASP .NET v4.0”应用程序池。如何在 Visual Studio 中做到这一点?
如果可能,我会尽量不更改 IIS 中的任何设置。
【问题讨论】:
-
您的应用程序面向哪个 .NET Framework 版本?
-
还有,你知道服务器上安装的是什么版本的ASP.NET吗?
标签: asp.net visual-studio iis visual-studio-2012