all groups > dotnet web services > november 2007 >
You're in the

dotnet web services

group:

System.Runtime.Serialization.SerializationException



System.Runtime.Serialization.SerializationException cashdeskmac
11/26/2007 8:21:00 AM
dotnet web services: 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?

RE: System.Runtime.Serialization.SerializationException cashdeskmac
11/26/2007 8:31:02 AM
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.

AddThis Social Bookmark Button