我刚刚在一个服务器上启用了配置转换.在观看斯科特·汉塞尔曼的《video on web deployment》之后,VS2010 RC中的NET3.5项目.不幸的是,每次我go 发表我现在得到以下错误:

"TransformXml"任务失败

如果我使用一个全新的VS2010 web应用程序,默认情况下已经进行了配置转换,那么我没有问题,因此我怀疑我的问题与项目有关.以前有没有人遇到过这个问题,或者对解决方法有什么 idea ?

推荐答案

Looks like the answer was simple yet obscure; I had an app setting (a password), which contained a ">" symbol. I tried converting the app to .NET 4 then back to .NET 3.5 and everything ran fine as during the process the symbol had been escaped to ">". Never had a problem with this character until config transformations came along but at least the fix is now simple.

编辑:详细一点写博客:Visual Studio 2010 Config Transformations TransformXml task failure

Asp.net相关问答推荐

502 DotNet WebApplication的网关nginx已损坏

属性包含破折号的 ServiceStack 请求对象?

asp.net、url 重写模块和 web.config

ASP.NET Response.Redirect 使用 302 而不是 301

如何使用 javascript 获取 MVC 应用程序的基本 URL

用户NT AUTHORITY\NETWORK SERVICE登录失败

如何将 Castle Windsor 与 ASP.Net Web 表单一起使用?

如何在 ASP.NET Web 窗体中使用依赖注入

在 C# 中将 IHtmlContent/TagBuilder 转换为字符串

如何在asp.net mvc的html.actionlink中调用javascript函数?

回发后动态创建的控件丢失数据

使用 Asp.Net MVC 和 Web Api 配置 Ninject

单独装配和路由中的控制器

如何获得 System.Diagnostics.Process 的输出?

在 Visual Studio 2010 Professional 中找不到请求的 .Net Framework 数据提供程序

在 JavaScript 中获取当前会话值?

如何将参数传递给 ASP.NET MVC 2 中的自定义 ActionFilter?

ASP.NET MVC 5 Web.config:FormsAuthenticationModule或FormsAuthentication

Page.IsPostBack 和 Page.IsCallBack 有什么区别?

使用 jQuery 从 asp:RadioButtonList 读取选定的值