Wrox Programmer Forums
BOOK: Professional C#, 2nd and 3rd Editions
This is the forum to discuss the Wrox book Professional C#, 3rd Edition by Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen; ISBN: 9780764557590
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C#, 2nd and 3rd Editions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 31st, 2006, 02:31 AM
Authorized User
Join Date: Nov 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default .NET Remoting Client...


I am trying a .NET Remoting server & client using config file.
The server uses,

                <wellknown mode="Singleton" type="Temp.Temperature, Temp" objectUri="Temp"/>
                <wellknown mode="Singleton" type="ServerClass.ServerEmul, ServerClass" objectUri="Temp2"/>
                <channel port="8000" ref="http">
                        <formatter ref="soap" typeFilterLevel="Full" />
                        <formatter ref="soap" />

The client uses...
        <application name="ClientTest">
                <wellknown type="Temp.Temperature, Temperature" url="http://localhost:8000/Temp"/>
                <wellknown type="ServerClass.ServerEmul, ServerClass" url="http://localhost:8000/Temp2"/>
                <channel ref="http" port="0"/>

The above config is registered using RemotingConfiguration.Configure(); Seems working fine for 1 Client instance. When I start using 2nd client instance, I am getting an error that the HTTP port is already in use. I tried 2nd client from another computer, it seems working fine. So I figured out that for client, <channel ref="http" port="0"/> needs to have an name attribute to refer to every client instance. How do I do this?
Is there a better way?

Please Advice,

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Remoting premalm ASP.NET 2.0 Professional 3 August 5th, 2008 02:31 PM
RegisterChannel on the client (.NET Remoting) DevMike BOOK: Professional C#, 2nd and 3rd Editions 1 January 25th, 2006 01:37 PM
.NET Remoting application in vb.net Tek4VB .NET Web Services 6 November 19th, 2003 09:59 AM
Remoting (.Net) Indian Ocean .NET Web Services 6 November 12th, 2003 03:27 PM
.NET Enterprise Development in VB.NET Remoting burkert All Other Wrox Books 0 June 24th, 2003 09:04 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.