将 .Net 4.5 网站部署到 IIS 7.5 服务器 [英] Deploying a .Net 4.5 website to an IIS 7.5 server

查看:36
本文介绍了将 .Net 4.5 网站部署到 IIS 7.5 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆