473,498 Members | 1,956 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 1212

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

Similar topics

3
1767
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...
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...
1
2695
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...
0
1167
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...
0
7125
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
7165
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,...
0
7203
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...
0
5462
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,...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4588
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...
0
3093
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...
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.