WCF common types not reused

前端 未结 7 1356
梦如初夏
梦如初夏 2020-12-09 04:53

Hint: This questions has many duplicates, but none of the solutions works for me.

What I have is a web service and a client, both having references to a shared assem

7条回答
  •  有刺的猬
    2020-12-09 05:16

    OBJECTCEPTION!

    We recently had the same problem where I work. It took us four hours to hunt down the problem, but we eventually discovered that an enum on an object within the same dll as the object it was refusing to copy had the same name as another enum that was being used in the service, so it refused to reuse any types from that dll.

    Suggestion(solution?): Make sure that there are no other objects in the dlls, or objects on those object, or... etc. that have the same name as one in your service.

提交回复
热议问题