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
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