473,386 Members | 1,924 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,386 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 4846
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.