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>
存在“>”符号
把 “>”修改为 “>”
问题解决