N
Nathan Baulch
After failing to a solution in the remoting newsgroup, I've decided to post
here also.
I'm trying to convert the "Remoted Events (Chat) Sample"
(http://support.microsoft.com/Default.aspx?id=312114) from Http to Ipc
channels in .net V2.
Since everything is setup in config files, I have only changed the server
and client app.config files (see below).
Unfortunately I'm getting a RemotingException in the client with the
message: "Failed to connect to an IPC Port: The system cannot find the file
specified.".
Is anybody able to shed any light on this? I've used IpcChannel before, but
never set them up from config files.
Server:
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="ChatCoordinator, ChatCoordinator"
objectUri="Chat" />
</service>
<channels>
<!--<channel ref="http" port="8080" />-->
<channel ref="ipc" portname="ChatCentral">
<clientProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
Client:
<configuration>
<system.runtime.remoting>
<application>
<client>
<!--<wellknown type="ChatCoordinator, ChatCoordinator"
url="http://localhost:8080/Chat" />-->
<wellknown type="ChatCoordinator, ChatCoordinator"
url="ipc://ChatCentral/Chat" />
</client>
<channels>
<!--<channel ref="http" port="0" />-->
<channel ref="ipc" portname="ChatClient">
<clientProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
Nathan
here also.
I'm trying to convert the "Remoted Events (Chat) Sample"
(http://support.microsoft.com/Default.aspx?id=312114) from Http to Ipc
channels in .net V2.
Since everything is setup in config files, I have only changed the server
and client app.config files (see below).
Unfortunately I'm getting a RemotingException in the client with the
message: "Failed to connect to an IPC Port: The system cannot find the file
specified.".
Is anybody able to shed any light on this? I've used IpcChannel before, but
never set them up from config files.
Server:
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="ChatCoordinator, ChatCoordinator"
objectUri="Chat" />
</service>
<channels>
<!--<channel ref="http" port="8080" />-->
<channel ref="ipc" portname="ChatCentral">
<clientProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
Client:
<configuration>
<system.runtime.remoting>
<application>
<client>
<!--<wellknown type="ChatCoordinator, ChatCoordinator"
url="http://localhost:8080/Chat" />-->
<wellknown type="ChatCoordinator, ChatCoordinator"
url="ipc://ChatCentral/Chat" />
</client>
<channels>
<!--<channel ref="http" port="0" />-->
<channel ref="ipc" portname="ChatClient">
<clientProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
Nathan