Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Moving Chat sample from Http to Ipc channel...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Baulch - 03 Jul 2006 13:23 GMT
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
GhostInAK - 04 Jul 2006 10:26 GMT
Hello Nathan,

I don't know anything about the M$ example.  However, a chat client that
communicated via IPC would be useless.  
Your best bet is http or a binary channel of some kind.

-Boo

> After failing to a solution in the remoting newsgroup, I've decided to
> post here also.
[quoted text clipped - 62 lines]
> </configuration>
> Nathan
Nathan Baulch - 04 Jul 2006 14:25 GMT
> a chat client that communicated via IPC would be useless.

I realise that, I'm only using it as a publicly available working example of
remoting with events (bidirectional).
What I eventually want to do is expose the application object of my program
(which has lots of events) via IPC for automation by third parties.
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.