我在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 

相关文章:

  • 2022-01-30
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-12-27
  • 2021-11-01
  • 2021-12-21
猜你喜欢
  • 2021-06-13
  • 2021-08-19
  • 2021-05-29
  • 2022-03-11
  • 2021-06-26
  • 2022-12-23
  • 2021-08-12
相关资源
相似解决方案