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

19/08/2010

Comments

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

gromas

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

Warning
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

anon

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

didnt work for me

grrrr

Kit

@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.
VS2010.

Tks

Verify your Comment

Previewing your Comment

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

Working...
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.

Working...

Post a comment

Your Information

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

My Other Accounts

Facebook LinkedIn Twitter Twitter

Links

Twitter Updates

    follow me on Twitter