vs2010 发布web项目 出错

 

错误如下

 The "TransformXml" task failed unexpectedly.
System.UriFormatException: Invalid URI: The URI is empty.
 at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
 at System.Uri..ctor(String uriString)
 at Microsoft.Web.Publishing.Tasks.TransformXml.Execute()
 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) 0 0 HP.HITT.AD.MSCP.WEB
 
 

 

原因是 在Web.config文件中

<appSettings>
 <add key="DbHelperProvider" value="System.Data.SqlClient"/>
 <add key="sqlConnectionString" value="Data Source=(local);Initial Catalog=Test;Persist Security Info=True;User ID=sa;Password=)P:?(OL>8ik,"/>
 </appSettings>

 

存在“>”符号

把 “>”修改为 “&gt;”

问题解决

相关文章:

  • 2021-08-25
  • 2021-04-03
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-10-08
猜你喜欢
  • 2022-12-23
  • 2021-04-23
  • 2022-01-12
  • 2022-01-01
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案