Remoting between Windows Services

Hi, I have two windows services.  Our client app will talk to service A on the local machine or a remote machine.  Service A will then talk to service B on another machine.  From the application I can 'talk' to both A and B local or remote.  No problem.  From service A, remoting fails (local or remote) to service B on a method call with a NotSupportedException (specifed method is not supported) when trying to talk to service B.  The object being remoted from B into A is referenced in the project.  Using Acivator.GetObject.  I think I've 'turned off' security and set the service to run as my domain acct.  there is something different about remoting between services but I can't put my finger on it.  Again, it works if the client is a regular Windows app.

Anyone have a clue    Three days now combing MSDN and samples.  :(

Thanks,
Dave

ScriptHost2 scriptHost = Activator.GetObject(typeof(ScriptHost2), "http://localhost:8099/ScriptHost") as ScriptHost2;



< xml version="1.0" encoding="utf-8" >

<configuration>

<system.runtime.remoting>

<application>

<channels>

<channel ref="http" port="8099">

<serverProviders>

<provider ref="wsdl" />

<formatter ref="soap" typeFilterLevel="Full" />

<formatter ref="binary" typeFilterLevel="Full" />

</serverProviders>

<clientProviders>

<formatter ref="binary" typeFilterLevel="Full" />

<formatter ref="soap" typeFilterLevel="Full" />

</clientProviders>

</channel>

</channels>

<service>

<wellknown type="RemoteScripting.ScriptHost2, RemoteScripting" objectUri="ScriptHost" mode="Singleton" />

</service>

</application>

</system.runtime.remoting>

</configuration>





Answer this question

Remoting between Windows Services

  • DotNETKans - 2005

    Do you have a stack trace that you could add   It might help with debugging. 

    Thanks,

    Matt

  • Remoting between Windows Services