vs 2010 程序发布时出现 TransformXml任务意外失败

我在vs2010 发布网站的时候也出现了这个错误,网上找的资料都是因为web.config里面存在“>”符号
把 “>”修改为“& g t ; ”。但我的web.config里面不存在 “>” 。还有一种情况是你在web.config的配置上拷贝过来的,其中有存在空格或者其他敏感字符也要注意一下,我次遇到的错误如下,主要就是空格的原因。
错误提示如下:
“TransformXml”任务意外失败。
System.UriFormatException: 无效的 URI: 此 URI 为空。
   在 System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   在 System.Uri..ctor(String uriString)
   在 Microsoft.Web.Publishing.Tasks.TransformXml.Execute()
   在 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   在 Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)		0	0	Zysoft.WebSite4 
posted @ 2012-08-27 09:27  星火卓越  阅读(3344)  评论(2编辑  收藏  举报