-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Swimmy
Message 1 in Discussion

 Dear all,    I have tried to use.NET Remoting in my VB.NET project. My 
question is    "Do i have to take a reference of my server application in my 
client application? i.e., Do i have to Import my Server Application in my 
Client Application?  Pls check the  code written below this is how i have tried 
to do"  
Kindly help me with this. 
Thanking you. 
Sincerely,  
Swimmy In my server application i have done the following:   1. Referenced the 
System.Runtime.Remoting 2. Imports System.Runtime.Remoting      Imports 
System.Runtime.Remoting.Channels      Imports 
System.Runtime.Remoting.Channels.Tcp 3.  Inherits MarshalByRefObject 4.  Sub 
main()     
System.Runtime.Remoting.RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile,
 True)    End Sub 5. In app.config - >  
<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
<system.runtime.remoting> 
<application> 
<service> 
<wellknown mode="Singleton" objectUri="libBLAccounts.rem" type="libBLAccounts, 
libBLAccounts" /> 
</service> 
<channels> 
<channel ref="tcp" port="49341" /> 
</channels> 
</application> 
</system.runtime.remoting> 
</configuration> In my Client application i have done the following:   1. 
Imports System.Runtime.Remoting      Imports System.Runtime.Remoting.Channels   
   Imports System.Runtime.Remoting.Channels.Tcp   2. Public Shared Sub Main()   
 
System.Runtime.Remoting.RemotingConfiguration.Configure("frmCompanyMasterexe.config",
 True)    End Sub 'Main   3. In app.config  
<system.runtime.remoting> 
<application> 
<client> 
<wellknown type="libBLAccounts, libBLAccounts" 
url="tcp://Swimmy:49341/libBLAccounts.rem" /> 
</client> 
</application> 
</system.runtime.remoting>

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to