Bogdan Verbenets
Bogdan Verbenets

Reputation: 26956

can't publish a Visual Studio 2010 website : The TransformXml task failed unexpectedly

Can't publish a website. When I try to publish it to a valid FTP or a local folder, I get following error:

Error 1 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*

How do you deal with this?

Upvotes: 7

Views: 6581

Answers (2)

Dirk Boer
Dirk Boer

Reputation: 9085

Adding <AutoParameterizationWebConfigConnectionStrings>False</AutoParameterizationWebConfigConnectionStrings> in the csproj on the right PropertyGroup fixed the problem for me.

Upvotes: 0

Bogdan Verbenets
Bogdan Verbenets

Reputation: 26956

this has solved my problem: http://www.troyhunt.com/2010/03/visual-studio-2010-config.html

Upvotes: 10

Related Questions