Every
time I make a call to my web method through a browser, I get the following
error message:

There was an error generating the XML document.System.InvalidOperationException: There was
an error generating the XML document. ---> System.InvalidOperationException:
The type qdoc was not expected. Use the XmlInclude or SoapInclude attribute to
specify types that are not known statically.

I’ve
searched over the Internet and the consistent answer to this problem seems to
be to add (as the error message says) XmlInclude or SoapInclude to the
WebMethod attribute.I’ve tried both
XmlInclude and SoapInclude but I still get the same error message.

Please,
does anybody have any suggestions of what I should be doing to get this
working?I’m getting desperate.TIA

Thursday, August 31, 2006 9:20 PM

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.