WCF Service Reference generates its own contract interface, won't reuse mine

后端 未结 4 1561
离开以前
离开以前 2020-12-02 15:31

My first question so hope it is suitable:

Shared interface assembly - I have a \'shared\' assembly which has an interface, let\'s call it IDocRepository

4条回答
  •  天命终不由人
    2020-12-02 16:00

    When you create the service reference, there is a box you can tick to make it reuse the shared definitions. Make sure the client project is already referencing the shared assembly, add the service reference again, and check all the options carefully.

    If it still doesn't work, check the binding you use. I have a vague recollection that basic HTTP binding won't support re-using of types?

提交回复
热议问题