Annoying Compilation Issue.

R

Rollasoc

Ok, this is going to be a bit difficult to explain, since it is
slightly convoluted.

I have a c# DLL. Lets call it Common.DLL
It contains base classes and enums and structs etc
Lets say it has an enum called Mode.

I have two Webservices. Call them A and B.
Both of these webservices reference Common.DLL

Webservice A has a function on it public void myfunction(Common.Mode
myMode)

Webservice B references webservice A.

Now in a function in B, I declare a variable of A's service and
instantiate it.

When I call myfunction I get a compilation error

Argument '1': cannon convert from 'Common.Mode' to 'A.Mode'


Why does it do this, when A's declaration says it is Common.Mode.
Why is it trying to use A.Mode?
How can I fix this so it compiles (without the obvious using A.Mode
casting since I need to pass the mode into calls to Common.DLL later)?


Chris
 
R

Rollasoc

Ok, sussed the issue, it was a problem with my PC setup, not having a
Visual Studio Addin it required to get Shared types to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top