使用Visual Studio 2012发布网站时出错 [英] Error when Publishing Website using Visual Studio 2012

查看:313
本文介绍了使用Visual Studio 2012发布网站时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用visual studio 2012创建部署包,我收到了xml转换错误。以下是我试图解决此问题的选项:



1.删除调试和发布配置文件,因为我不需要它

2.禁用TransformWebConfigEnabled以防止在部署期间转换

3.卸载的窗口azure sdk



解决方案来自不同的帖子来自其他文章还没有运气。





请看下面的错误:



I am trying to create a deployment package using visual studio 2012 and i am getting xml transform error. The following are the options i have tried to fix this:

1. Removed the debug and release config file as i don't need it
2. Disabled the TransformWebConfigEnabled to prevent transforming during deployment
3. Uninstalled windows azure sdk

The solutions were coming from different post from other articles yet still no luck.


please see error below:

Error	1	The "ImportParametersFile" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.XmlTransform, Version=1.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Web.XmlTransform, Version=1.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at Microsoft.Web.Publishing.Tasks.ImportParametersFile.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.XmlTransform, Version=1.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/
LOG: Initial PrivatePath = NULL
Calling assembly : Microsoft.Web.Publishing.Tasks, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===

推荐答案

我尝试过的解决方案。

解决方案1:卸载Visual Studio 2012和azure sdk并安装回VS2012和Azure SDK 2.3



失败结果:由于找不到xml转换dll,我仍然无法发布。



+++



解决方案2:尝试安装VS 2013



成功结果:我现在可以使用vs2013发布
Solutions I have tried.
Solution 1: Uninstall Visual Studio 2012 and azure sdk and Install back the VS2012 and Azure SDK 2.3

Failed Result: I still can't publish due to xml transform dll not found.

+++

Solution 2: Tried Installing VS 2013

Successful Result: I am now able to publish using vs2013


这篇关于使用Visual Studio 2012发布网站时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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