【问题标题】:How do I target a specific Application Pool when using Visual Studio 2012's Web Deploy?使用 Visual Studio 2012 的 Web 部署时,如何定位特定的应用程序池?
【发布时间】: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


【解决方案1】:

我不知道这是否会被视为 hack,但它可以毫无问题地完成工作。

我首先在 IIS 中创建了一个文件夹,然后将其转换为应用程序。之后,我让它以 .NET 4.0 应用程序池为目标,瞧,Visual Studio 能够部署应用程序而不会出现错误。

我希望这有助于将来谷歌他们的问题并提出我的问题的人。

【讨论】:

    猜你喜欢
    • 2013-07-25
    • 1970-01-01
    • 1970-01-01
    • 2014-06-02
    • 1970-01-01
    • 1970-01-01
    • 2021-05-04
    • 2013-02-01
    • 1970-01-01
    相关资源
    最近更新 更多