Hi Dan,
that's the confusing part...It's my project...my source code
The error happens within the soap call mechinism
Regards,
Mekim
> Hi,
>
[quoted text clipped - 54 lines]
> in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable
Dan Rogers - 21 Dec 2004 18:47 GMT
Hi Mekim,
No, the error is the the result of a bug in your code - 99.999 percent
certain. WIthout knowing what class you are trying to serialize (in your
service code) it's really hard to say where the bug is occurring.
Try placing a break point in your service code, load the project in VS and
then click debug/start, and then call the service from your test client.
Step thru the service method a line at a time and note what line it is on
where it raises an exception. The line it does this on is very likely to
contain the mistake.
Serializing a type that isn't serializable often occurs when you have
assumed that any class in the .NET Framework can readily be serialized out
to XML. There are very FEW framework classes that serialize with good
effect outside of the core data types.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: SerializationException
thread-index: AcTm8z0h6pf/NUsbQxOCk+RY4CV1Ww==
X-WBNR-Posting-Host: 68.157.85.195
From: "=?Utf-8?B?bWVraW0=?=" <mekim@discussions.microsoft.com>
References: <B3FA0939-4426-4D41-A7F8-37FC3F815408@microsoft.com>
<luMj25u5EHA.1512@cpmsftngxa10.phx.gbl>
Subject: RE: SerializationException
Date: Mon, 20 Dec 2004 16:23:05 -0800
Lines: 72
Message-ID: <43B3B349-7425-4B1E-B572-7B137F65EEEA@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8232
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hi Dan,
that's the confusing part...It's my project...my source code
The error happens within the soap call mechinism
Regards,
Mekim
"Dan Rogers" wrote:
> Hi,
>
[quoted text clipped - 54 lines]
> in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable