zlb

VS 2010Asp.net项目发布出错 TransformXml task failure

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;”

问题解决

posted on 2011-05-13 14:58  zlb  阅读(908)  评论(0编辑  收藏  举报

导航