By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Webservice Proxy Generator Recreates Types?

P: n/a
Hello,

I have a simple webservice that accepts a network credential as an argument
to a webmethod.
When i create a proxy for my client to use, the proxy generator then
recreates a new type

mywebservicename.networkcredential

such that when i try to pass a system.net network credential to the
webservice, it fails saying option strict on prevents cast from
mywebservicename.networkcredential to system.net.networkcredential.

I prefer to program with Option strict on so i dont want to turn it off.

What am i doing wrong that .Net cant see that the network credentials are
exactly the same. This is especially annoying considering it is a .net
framework type i am passing.... but the proxy generator turns it into a
custom class... why?

I also get the same issue with a dataset created from the same middle tier
assembly, however whenever i try to pass the dataset from the client to the
webservice it says they are of different types?
Thanks
George

Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.