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

How to pass an exception object to Webservices. Error: use the xmlinclude or soapinclude...

P: n/a
I wrote a webservices that should accept an exception object and log
info to a db. When I call the function in my webservices class I get an

The type System.DivideByZeroException was not expected. Use the
XmlInclude or SoapInclude attribute to specify types that are not known

Is it possible to pass an exception object as a parameter to

What am I doing wrong?

Heres a function that calls the webservice..
private void ErrorTest()
int i = 0;
i = 3 / i;
catch(Exception ex)
this.Label1.Text = exWebservices.LogError(ex);
Heres the declaration of the webservice function:
public string LogError(Exception ex)

//log ex.tostring to db...

Jan 10 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.