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
pondo_sinat - 14 Jun 2006 00:16 GMT
I am having the same problem and will post back with my findings unless
you have found the solution already. If so, please let me know.
Thanks
> 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).
[quoted text clipped - 129 lines]
>
> ------=_NextPart_000_0008_01C68A41.1A872690--
Nathan Baulch - 14 Jun 2006 08:10 GMT
> unless you have found the solution already. If so, please let me know.
Nothing so far I'm afraid. I've also posted on the official Microsoft web
forums with no luck. Maybe you could back me up over there as well!
http://forums.microsoft.com/msdn/showpost.aspx?postid=462987
Nathan Baulch - 25 Jul 2006 04:43 GMT
> Is anybody able to shed any light on this? I've used IpcChannel before, but
> never set them up from config files.
For the benefit of the group, the problem was that the portName attribute in the client channel has a capital N.