473,322 Members | 1,911 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

SerializationException

I am getting an unhandled exception on a webservice as listed below
and my quesiton is

How do I trap it to find where it's coming from since it seems to be outside
of the my code.

Thx in advance
Mekim

An unhandled exception of type
'System.Runtime.Serialization.SerializationExcepti on' occurred in Unknown
Module.

Additional information: The type System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable
Nov 23 '05 #1
4 4842
Hi,

It looks to me like someone has not tested their exception logic, and the
exception they are trying to throw is not compatible with the exception
mechanism.

To track this down, you need to be able to get to the source for the
service - so if this is not under your control I would imagine the best you
can do is to work with the party who does and treat this like a bug in a
vendors application.

Best of luck

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: SerializationException
thread-index: AcTm7axWWi0oTzWmTGaKXYEFM16RyQ==
X-WBNR-Posting-Host: 68.157.85.195
From: "=?Utf-8?B?bWVraW0=?=" <me***@discussions.microsoft.com>
Subject: SerializationException
Date: Mon, 20 Dec 2004 15:43:14 -0800
Lines: 18
Message-ID: <B3**********************************@microsoft.co m>
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:8228
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I am getting an unhandled exception on a webservice as listed below
and my quesiton is

How do I trap it to find where it's coming from since it seems to be
outside
of the my code.

Thx in advance
Mekim

An unhandled exception of type
'System.Runtime.Serialization.SerializationExcepti on' occurred in Unknown
Module.

Additional information: The type
System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable

Nov 23 '05 #2
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,

It looks to me like someone has not tested their exception logic, and the
exception they are trying to throw is not compatible with the exception
mechanism.

To track this down, you need to be able to get to the source for the
service - so if this is not under your control I would imagine the best you
can do is to work with the party who does and treat this like a bug in a
vendors application.

Best of luck

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: SerializationException
thread-index: AcTm7axWWi0oTzWmTGaKXYEFM16RyQ==
X-WBNR-Posting-Host: 68.157.85.195
From: "=?Utf-8?B?bWVraW0=?=" <me***@discussions.microsoft.com>
Subject: SerializationException
Date: Mon, 20 Dec 2004 15:43:14 -0800
Lines: 18
Message-ID: <B3**********************************@microsoft.co m>
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:8228
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I am getting an unhandled exception on a webservice as listed below
and my quesiton is

How do I trap it to find where it's coming from since it seems to be
outside
of the my code.

Thx in advance
Mekim

An unhandled exception of type
'System.Runtime.Serialization.SerializationExcepti on' occurred in Unknown
Module.

Additional information: The type
System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable

Nov 23 '05 #3
are you trying to Serialized (i.e. tranferring the exception across the
wire) if so then you mignt want to check out the advanced serialization
mechanism for Exception using XML friendly base64 , bear in mind this is
strictly for .net client and WS, so it's not interop friedly

[Serializable]
public class MySoapException
{

[XmlIgnore]
public Exception Exception;
public MySoapException()
{
//Required by XML serialization
}

public MySoapException(Exception Exception)
{
this.Exception = Exception;
}
public string ExeptionDetail{
get{
MemoryStream ms = new MemoryStream();
BinaryFormatter bf = new BinaryFormatter();
bf.Serialize(ms, this.Exception);
ms.Close();
return Convert.ToBase64String(ms.ToArray());
}
set{
MemoryStream ms = new MemoryStream(
Convert.FromBase64String(value));
BinaryFormatter bf = new BinaryFormatter();
this.Exception = (Exception)bf.Deserialize(ms);
ms.Close();
}
}
public MySoapException(string ExeptionDetail){
this.ExeptionDetail = ExeptionDetail;
}
}

mekim wrote:
I am getting an unhandled exception on a webservice as listed below
and my quesiton is

How do I trap it to find where it's coming from since it seems to be outside
of the my code.

Thx in advance
Mekim

An unhandled exception of type
'System.Runtime.Serialization.SerializationExcepti on' occurred in Unknown
Module.

Additional information: The type System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable

Nov 23 '05 #4
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=?=" <me***@discussions.microsoft.com>
References: <B3**********************************@microsoft.co m>
<lu**************@cpmsftngxa10.phx.gbl>
Subject: RE: SerializationException
Date: Mon, 20 Dec 2004 16:23:05 -0800
Lines: 72
Message-ID: <43**********************************@microsoft.co m>
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,

It looks to me like someone has not tested their exception logic, and the
exception they are trying to throw is not compatible with the exception
mechanism.

To track this down, you need to be able to get to the source for the
service - so if this is not under your control I would imagine the best you can do is to work with the party who does and treat this like a bug in a
vendors application.

Best of luck

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: SerializationException
thread-index: AcTm7axWWi0oTzWmTGaKXYEFM16RyQ==
X-WBNR-Posting-Host: 68.157.85.195
From: "=?Utf-8?B?bWVraW0=?=" <me***@discussions.microsoft.com>
Subject: SerializationException
Date: Mon, 20 Dec 2004 15:43:14 -0800
Lines: 18
Message-ID: <B3**********************************@microsoft.co m>
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:8228
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I am getting an unhandled exception on a webservice as listed below
and my quesiton is

How do I trap it to find where it's coming from since it seems to be
outside
of the my code.

Thx in advance
Mekim

An unhandled exception of type
'System.Runtime.Serialization.SerializationExcepti on' occurred in Unknown
Module.

Additional information: The type
System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable


Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: news.microsoft.com | last post by:
I have created an add-in for VS.NET and when it starts I want the add-in to read the options from file. I have created a class (with the attribute set) that contains the options and implemented...
1
by: Frank Jones | last post by:
When manually running resgen.exe from the command prompt (Visual Studio .NET 2003 command prompt) I get the following error: error: Invalid ResX input. error: Specific exception:...
0
by: Philip Reed | last post by:
I'm trying to write a preferences-handling infrastructure that serializes prefs to XML. Basically I want to read in a common "default" prefs set, then read in the user's prefs and override the...
0
by: Skip | last post by:
Hi, I get the following exception thrown when I try to run my code: "An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional...
3
by: Really stuck | last post by:
Hello, I'm getting the following error now with my aplication, but only when I run it ocally on my machine: System.Runtime.Serialization.SerializationException: Cannot find member name...
0
by: Adam P | last post by:
Hi, When I run my website under IIS, it works fine. When I attempt to run it as a "file system" website under vs2005 RC1 I get the following error: Error Message: Type is not resolved for...
1
by: Brent Starkes | last post by:
Hi, I'm having a deserialization problem with a dll plug-in I'm writing, it serializes just fine but I'm getting an exception on the deserialization process. A first chance exception of type...
0
by: Simon Hart | last post by:
Hi, I have the following code which is miss-behaving at one site: public class HMRHost { private int _pid;
0
by: billa | last post by:
Hello, I am creating a web service with .NET 2.0 and Visual Studio 2005. I want to enable the following class as a web service: public class Service : System.Web.Services.WebService {
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.