Hi,
I am passing a couple of objects through a web service and get the error
message below when I check the event log:
System.Runtime.Serialization.SerializationExceptio n: The type
System.Web.HttpException in Assembly System.Web, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not marked as
serializable.
The stack trace tells me that the error is:
Client found response content type of '', but expected 'text/xml'.
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters) at etc., etc.
The objects I am passing through are a user-defined object and a boolean
value. The object gets passed through the web service 1000's of times every
day but on this one method call it doesn't like it. I have had this in the
past and it masked another problem, unfortunately it was so long ago that I
can't remember what the actual error was. Could it be something to do with
the size of the object?
I have browsed to the asmx page which shows a complete list of methods
available, and clicking the Invoke button threw up a 500 internal server
error. I don't know if that helps to identify the problem.
Any help would be most appreciated.