Question

I would like to know how configure C# solution in VS2012 for more projects, and service reference only at one place.

I have three projects:

  • A: MVC4 Web Application
  • B: Class Library
  • C: WCF Class Library service reference to a WCF service somewhere on the internet.

Setup:

  • A has reference on B and C.
  • B has reference on C
  • C has not reference on project

In B I would like to call service method, from service reference, in C.

But always when I try it, I get NullReferenceException.

What is the right way for have only one service reference for the whole solution?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top