all groups > dotnet remoting > august 2006 >
You're in the

dotnet remoting

group:

Object must implement IConvertible


Object must implement IConvertible Rich Wood
8/31/2006 11:15:01 AM
dotnet remoting:
I am using remoting to pass data from a server to a client (or clients).

It has worked really well until we had some DNS problems yesterday. Now I am
getting an InvalidCastException with the message "Object must implement
IConvertible". The strange thing is that I'm only getting this message on one
machine -- I haven't tested it on every machine but out of 5 machines, it's
only happening on one. The error occurs when the server tries to call a
client method, one of the parameters is a class which has the [Serializable]
attribute set. The really strange thing is that it says it can't convert
[ClassName] to [ClassName] where ClassName is the name of my class.

Both machines (the machine hosting the client and the machine hosting the
server) are able to ping one another and I can browse shared folders on each
machine from the other machine. Of course we have rebooted, flushed the dns
cache, etc. Both machines have valid DNS forward and reverse lookup records.

I've googled this problem and just about everything that comes up is related
to incorrect explicit or implicit sql parameter casts.

Thanks in advance for any help.
RE: Object must implement IConvertible Rich Wood
9/19/2006 6:47:02 AM
I guess no one has any insight on this one.....

I eventually worked around this problem by implementing IConvertible just
like the error message told me to do. Implementing IConvertible was a
complete waste of time (other than the fact that the problem went away on
that one machine) since it doesn't make sense to convert my class to any of
the datatypes required by IConvertible. I figure this must be a bug in the
..NET Framework.


[quoted text, click to view]
AddThis Social Bookmark Button