title: Config transformations and “TransformXml task failed” error message
body: <p>I’ve just enabled config transformations on a .NET 3.5 project in VS2010 RC after watching Scott Hanselman’s <a href="http://www.hanselman.com/blog/WebDeploymentMadeAwesomeIfYoureUsingXCopyYoureDoingItWrong.aspx" rel="noreferrer">video on web deployment</a>. Unfortunately every time I go to publish I now get the following error:</p>
  
  <blockquote>
    <p>The "TransformXml" task failed
    unexpectedly.
    System.UriFormatException: Invalid
    URI: The URI is empty.    at
    System.Uri.CreateThis(String uri,
    Boolean dontEscape, UriKind uriKind)<br>
    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&amp; taskResult)</p>
  </blockquote>
  
  <p>If I take a brand new VS2010 web application which already has the config transformations by default I don’t have a problem so I suspect my issue is project related. Has anyone come across this before or have any ideas on a fix?</p>