.NET Framework Bookmark and Share   
 index > .NET Remoting and Runtime Serialization > .net remoting help
 

.net remoting help

i am having a sever and client seperate class with also a configuration file the file names are
server.exe.config

<configuration>
<system.runtime.remoting>
<application name="server">
<service>
<activated type="remote.ServiceClass, remote"/>
</service>
<channels>
<channel ref="http" port="8080">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>

and the client.exe.config file is

<configuration>

 <system.runtime.remoting>

  <application name="client">

   <client url = "http://localhost:8080">

    <activated type="remote.ServiceClass, remote"/>

   </client>

   <channels>

    <channel ref="http" port="0">

     <serverProviders>

      <formatter ref="binary" typeFilterLevel="Full"/>

     </serverProviders>

     <clientProviders>

      <formatter ref="binary"/>

     </clientProviders>

    </channel>

   </channels>

  </application>

 </system.runtime.remoting>

</configuration>
is there any possibility to define the url in client.exe.config as dynamic if i said the url it will be static one,then this application will run only in my network,suppose if i am creating this as a product this config file should be a runtime one
how to do this,can anybody pls tell me.....

Thanks
Jeyanth.s
I would suggest registering the channel programmatically on the client code so that the machine name can be picked up if that's what you mean?

RemotableType remotableType= (RemotableType)Activator.CreateInstance(typeof(RemotableType), null, "http://computername:8080/RemotableTypeUri")

Dynamic

You can use google to search for other answers

Custom Search

More Threads

• .NET Remoting Bug - fixed in 1.0 SP3?
• No Deserializer found to deserialize a ...
• Remoting mutual object question
• Notification alternatives..?
• Thread was being aborted???
• Deserializing Data from IsolatedStorage
• Problem with remoting, works, then mysteriously dies
• Remoting Singletons vs True Singletons
• Network Logon Failed-Home network
• How to dynamically load/create a class