将.Net 4.5网站部署到IIS 7.5服务器 [英] Deploying a .Net 4.5 website to an IIS 7.5 server
问题描述
我们正在使用Teamcity为我们的网站进行持续集成,并将我们的网站升级到.Net 4.5RC。该应用程序在我的盒子上的IIS Express中生成并运行,并在安装了.NEt 4.5RC的生成服务器上生成。但是,当我们将其部署到已安装.Net 4.5RC的服务器上时,会出现以下错误。
We are using Teamcity to do continuous integration builds for our website and have just upgraded our website to .Net 4.5RC. The application builds and runs in IIS express on my box and builds on our build server that I have installed .NEt 4.5RC on. But when we deploy it to the server that has had .Net 4.5RC installed on it we get the following error.
您尝试使用将'managedRuntimeVersion'属性设置为'v4.0'的情况。此应用程序需要 v4.5。
The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v4.5'.
我该怎么做才能解决此问题。我尝试将服务器上的应用程序池设置为4.5,但是不能。请参阅此SO帖子。
What can I do to fix this problem. I have tried setting the application pool on the server to 4.5, but can't. See this SO post.
推荐答案
原来,这是一个TeamCity问题。当我们将更新直接从Visual Studio 2012 RC推送到站点时,它可以正常工作。我们不得不将TeamCity中的构建运行器更改为调用VS 2012的WebDeploy 3.0的命令行运行器。
It turns out that it is a TeamCity problem. When we push the update directly to the site from Visual Studio 2012 RC it works fine. We have had to change the build runner in TeamCity to a command line runner that calls the WebDeploy 3.0 of VS 2012.
这篇关于将.Net 4.5网站部署到IIS 7.5服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!