开发者

CS0426 When Adding a WCF Service Reference

I have 3 projects in the same solution - one exposes a WCF service and the other two consume the service. One of the consumers works fine, but the other generates a CS0426 on the generated Reference.cs saying that isn't a member of my namespac开发者_C百科e. Adding the service reference works fine (no errors), this only happens on build.

So far, I cannot find a difference between the two projects...


I just found a blog post that solved it for me. The short answer is that it was because I had a namespace and class with the same name in the consumer. Weird that it causes this error though... I couldn't really see why.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜