升级到 Web 部署工具 2.1 后,从 Visual Studio 2010 进行部署停止工作

发布于 2024-11-08 18:45:26 字数 1043 浏览 5 评论 0原文

我有一个已经存在了一段时间的网站项目 - 到目前为止它一直基于 ASP.NET MVC2。 .Net 4、Visual Studio 2010 Sp1,部署到在 Win2008 R2 上运行的 IIS 7.5。

我有四个独立的部署配置文件 - “alpha”、“test”、“staging”和“live”。是的,我可能可以想出更好的名字,但它们应该能够传达它们的用途。

最近决定升级到 MVC3,以利用 Razor、全局过滤器属性等新功能,并开始使用 NuGet 等。因此,我对 Web 平台安装程序进行了升级。我更新的内容之一是 Web 部署工具 - 我的开发人员机器(MVC3 升级发生的地方)和 Web 服务器都安装了该工具的新版本。

从那时起,我就无法进行部署了。我已经回到了项目的早期版本(感谢 git 让我可以轻松地回到任何以前的版本)并尝试部署它们,但它们也不起作用。

每当我尝试从 Visual Studio 进行部署时,都会收到以下错误:

Web deployment task failed.((23.05.2011 11:18:24) An error occurred when the request was processed on the remote computer.)

(23.05.2011 11:18:24) An error occurred when the request was processed on the remote computer.
Unable to cast object of type 'Microsoft.Web.Deployment.DeploymentSyncOptions' to type 'Microsoft.Web.Deployment.DeploymentSyncOptions'.

我可以明白为什么该转换会很困难。 ;)

但说真的 - 我们怎样才能让 Visual Studio 的部署再次工作?将来,我们将使用 CI 服务器执行此操作,并根据更新的 git 分支,使用 MsBuild 自动在正确的 Web 服务器上安装部署包,但那是在将来的某个时间。

我可以完全访问两台机器,因此希望可以收集任何其他需要的信息。

I have a web site project that has been existing for a while - it has been ASP.NET MVC2 based up until right now. .Net 4, Visual Studio 2010 Sp1, deployed to IIS 7.5 running on Win2008 R2.

I have four separate deployment profiles - "alpha", "test", "staging" and "live". Yes, I could probably have come up with better names, but they should hopefully convey what they are for.

It was recently decided to upgrade to MVC3 to take advantage of new awesomeness like Razor, global filter attributes, and start using NuGet etc. So I went on an upgrade binge with the Web Platform Installer. One of the things I updated was the Web Deployment Tool - both my developer machine (where the MVC3 upgrade happens) and the web server got this new version of the tool installed.

Since then, I have not been able to do deployments. I have gone back to earlier versions of my project (thanks to git for allowing me to painlessly go back to any previous version) and tried to deploy them, and they don't work either.

Whenever I try to do a deployment from Visual Studio I get the following error:

Web deployment task failed.((23.05.2011 11:18:24) An error occurred when the request was processed on the remote computer.)

(23.05.2011 11:18:24) An error occurred when the request was processed on the remote computer.
Unable to cast object of type 'Microsoft.Web.Deployment.DeploymentSyncOptions' to type 'Microsoft.Web.Deployment.DeploymentSyncOptions'.

I can see why that cast would be hard. ;)

But seriously - how can we get deployment from Visual Studio to work again? In the future we will do this using our CI server, and install a deployment package using MsBuild automatically on the correct web server depending on the git branch that was updated, but that is some time in the future.

I have full access to both machines so any other information need can hopefully be gathered.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

执手闯天涯 2024-11-15 18:45:26

如果您曾经安装过 Web 平台安装程序 v2 beta,那么您的机器上可能会安装 Web 部署的测试版。你可以通过以下方式检查
gacutil -l Microsoft.web.deployment。

如果您看到任何 7.5.0.0 版本,那么您拥有的是 Beta 版本。卸载这个版本。您需要在客户端和服务器上检查并更改它。

You might be having beta version of web deploy on your box if you have ever installed web platform installer v2 beta. YOu can check that by
gacutil -l Microsoft.web.deployment.

If you see any 7.5.0.0 version then you have a beta version. Uninstall this version. You need to check and change this on both the client as well as the server.

地狱即天堂 2024-11-15 18:45:26

Owais 是对的 - 这很可能是因为您安装了预发行版本。 Rune 你能检查一下并告诉我吗?

Owais is right - this is very likely because you have a pre-release version installed. Rune can you please check and let me know?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文