Reference.cs is empty when creating a service client

I am trying to configure a VS2010 project in VS2012 and there is a problem with creating service links. Somewhere it fails, and Reference.cs becomes empty.

I looked at this:
WCF Service Reference Generates Null .cs Link Due to DuplexBinding
But since the code runs on VS2010, I would prefer not to change anything.

I tried this:
Sometimes adding a WCF service link generates an empty reference.cs

Then the code appears in Reference.cs, but some functions are missing, so the project does not work. Are there any known issues when doing this? I am completely stuck and need some ideas.

Thanks in advance!

/ David

+6
source share
1 answer

In the "Add service link" dialog box, click "Advanced", uncheck "Use reference types in this assembly"

enter image description here

I often run into this problem, this workaround works most of the time.

+9
source

Source: https://habr.com/ru/post/945564/


All Articles