class library

I am wonder when i use the same class library in web service and in aspx and then when i write something to class in aspx then call the same class from web service and try to cast this two classes they doesn't match?.
For example with type DateSet it works normally.
joesun99@hotmail.com
[298 byte] By [joesun99] at [2008-2-8]
# 1
You mean you have web reference in your project that refers to a web service . where both of them use the same class library.

whatever the case is, my feeling about this, is when you generate the proxy, wsdl.exe will generate the response and request type which look exacly the same as those it's refering too. and unfortunately since you also refers to this class, they look the same. but they are now in two diferrent places, one is in your class library, and one on your proxy.

what you could do is , remove the one in the proxy. then hopefully everything will compile nicely, you get a shared interface between two sets of reference.

erymuzuan at 2007-9-8 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified