473,528 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Runtime.Serialization.SerializationExceptio n - can't figure this out!

Hi,

I have the following code which is miss-behaving at one site:
[Serializable]
public class HMRHost
{

private int _pid;
private DateTime _date;

public int Pid
{
get
{
return _pid;
}
set
{
_pid = value;
}
}

public DateTime Date
{
get
{
return _date;
}
set
{
_date = value;
}
}
}

public interface IHMRHostCollection
{
System.Collections.ICollection GetData();
}

[Description("HMRHost Collection Class")]
[Transaction(TransactionOption.Required)]
[MustRunInClientContext(false)]
[ComponentAccessControl(false)]
[ClassInterface(ClassInterfaceType.None)]
public class HMRHostCollection : ServicedComponent, IHMRHostCollection
{
public static Hashtable _htable = null;

/// <summary>
/// Returns all the data in the hashtable.
/// </summary>
/// <returns></returns>
public System.Collections.ICollection GetData()
{
if (_htable != null)
{
return _htable.Values;
}
else
{
return null;
}
}
}
}

The above method "GetData" gets called from a .NET Windows Service. At one
site only (a W200 Server SP3) when calling the above generates a
SerializationException error with description: "One of the serialized keys
is null.".

Any ideas?

Cheers
Simon.
Mar 1 '06 #1
0 1218

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

Similar topics

3
1774
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 System.Data.SqlClient.SqlError. If I push the same build to a production server it runs without issue. This began happening suddenly and was working without...
2
375
by: Andy | last post by:
Hi All, I am calling a Java web service which is throwing some exception which the catch block is trapping successuly. I can see the "javax.ejb.EJBException:" in ex.message. but after this function i am getting the following exception in IDE window like An unhandled exception of type 'System.Runtime.Serialization.SerializationException'...
1
2704
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
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.
0
1171
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
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.
0
7329
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7254
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7483
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7655
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7238
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5784
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4821
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3318
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3319
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.