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 / Remoting / 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 - 07 Jun 2006 05:46 GMT
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.

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.