toargul

Hi

I am trying to call a Window Service written in 1.1, through 2.0 code, using remoting, and serviceController class.

But i am getting the error,

Error System.Runtime.Remoting.RemotingException: Cannot load type BServiceReporter...

Source "mscorlib"

when I try to call the method GetBWorkerStatusList.

oReporter = (BServiceReporter)Activator.GetObject(typeof(BServiceReporter), sTcpAddr);

m_xBatchWorkersStatusList = oReporter.GetBWorkerStatusList();

The lines work, if the ServiceController class uses, WindowService, written in framework 2.0 (But we have to use older windows service; business requirements)

I also looked at the following article, which i suspected, and installed the patch, but i think the problem is different

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=300062&SiteID=1

Any help in this, will be highly appreciated

thanks in advance

Jan



Re: .NET Remoting and Runtime Serialization System.Runtime.Remoting.RemotingException: Cannot load type ...

Erica Mohler - MSFT

Are you still experiencing the problem after installing the patch




Re: .NET Remoting and Runtime Serialization System.Runtime.Remoting.RemotingException: Cannot load type ...

Jesus Ruiz

This might be a type binding problem; have you tried turning off strict binding on the Server Formatter sink

http://msdn2.microsoft.com/en-us/library/system.runtime.remoting.channels.binaryserverformattersink.aspx