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.SerializationException: 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.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.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?
Any help would be most appreciated.
cashdeskmac - 26 Nov 2007 16:31 GMT
just to give you a bit more information, I went to IIS and browsed to the
asmx file. It gave a list of methods available but when I tried to invoke a
couple I got a 500 server error.
I don't know if this helps you in identifying the problem.