المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : .Net migration: client hangs [modified]



C# Programming
11-17-2009, 10:51 AM
Hi,

I've been googling a long time about this, so I thought you peeps might have an answer for me.

I have a application which has been written in .net1.1 a long time ago. I ported that application to .net2.0 (one step at a time http://www.barakasoft.com/script/Forums/Images/smiley_wink.gif) and left the code the same as much as I could. Everything works, except one thing which I cannot figure out why not.

I have this service, which is listening on a port on the same server as the client runs on. My client in this case is a configuration editor with some basic functionality like getting the time the last synchronisation ran etc.

The service is called the StatusPublisher.

I initialize the the publisher object for use with this call:

*****.IStatusPublisher publisher =
(*****.IStatusPublisher)Activator.GetObject(typeof(*****.IStatusPublisher),
string.Format("tcp://localhost:{0}/StatusPublisher", servicePort));
This is the call which works in .net1.1 but fails in .net2.0:
string returnValue = publisher.NextRun (serviceId);
This call locks up the complete config-tool, kinda forever (killed it after 50 minutes). I had a logging step between every code block, but the logger before the publisher.NextRun() logged fine, everything after was a complete lock up.

Any idea why I can instantiate the publisher object but cannot call a method from it?

The consumer isn't a moron; she is your wife.

modified on Monday, November 16, 2009 7:41 AM