« Fenomen's brand new Web Site is now available! | Main | Patch for Unity 2.0 with Interception of generic classes with interface constraints »



Feed You can follow this conversation by subscribing to the comment feed for this post.


This method does not work in VS2010. When I try to create a Service Reference then I get a warning and nothing is generated:

Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Referenced type 'TypeName' with data contract name 'ContractName' in namespace 'namespace' cannot be used since it does not match imported DataContract. Need to exclude this type from referenced types.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IContract'] *.*\Reference.svcmap


" add a reference to your assembly containing your data structures BEFORE adding a reference to your service."

didnt work for me



@gromas: This could be a reason: http://blogs.msdn.com/b/distributedservices/archive/2010/02/04/wcf-client-issue-with-reuse-types-from-referenced-assemblies.aspx?wa=wsignin1.0

Trak Trak Trugui

Works like a charm for me.


Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

My Other Accounts


Twitter Updates

    follow me on Twitter