WcfTestClient: The namespace ” already contains a definition for ‘…’

While using the WcfTestClient, I received the error message displayed in the title. It turned out that in my case, I was using colons in the namespaces of my wcf service, like so:

[ServiceContract(Namespace=“urn:SomeName::SomeMoreNames”)]
public interface IXxx

[OperationContract(Action = “urn:SomeName::SomeMoreNames”)]

{
void MetodName();
}

I managed to fix the error by changing the namespaces into something like “http://SomeName.SomeMoreNames”. Hope this helps anyone.

Advertisements

About Bram Veldhoen

I'm an independant senior software development consultant, working mostly in the area of integration using Microsoft BizTalk Server, Windows Communication Foundation and .NET.
This entry was posted in Wcf. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s