Hi Serkan,
the issue here is you are trying to share a class, not a type.
By deleting the "generated class based on the type specified by the
WebService" you essentially invalidate the proxy you created.
When dealing with WebServices, you (exceptions left alone) generally
share a WSDL file. NOT the assembly with the dataclasses exposed by
the WebService.
The WSDL file is then used on the client for generating "Proxy
classes" for you. These classes are NOT THE SAME classes as the server
exposes, but ARE THE SAME TYPES.
The framework will take care of serializing & deserializing. U can
just deal with "objects" in your code on both Server & Client side.
Hope this helps,
Marvin Smit.
On Fri, 17 Jun 2005 23:36:32 +0300, "Serkan DIRIARIN"
<ac*****@superonline.com> wrote:
hi! i have created a document class. I have a .net client application and a
web service. Both of them using same object model and referencing a
doctypes.dll file. But when i want to run a client application getting
error InvalidCastException. I deleted class declaration in reference.vb in
web reference defination and reference my document dll file, altough it is
still has error... What is the problem..
thanks....
Serkan