Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Fri, 13 Jun 2008 08:01:02 -0700,    group: microsoft.public.dotnet.distributed_apps        back       


.net remoting using tcp channel to machine in different domain   
I have stituation I can't solve.  I want to connect to an object on a 
remote computer.  My computer is on my company's network.  I have no trouble 
connecting to another machine also on this network, however, I need to 
connect to a machine not part of the network.  This machine is set to the 
Microsoft default i.e. membership in the group "workgroup".  I am using the 
following code:

Dictionary<string, object> props = new Dictionary<string, object>();
props["username"] = "myaccount";
props["domain"] = "workgroup";
props["machineName"] = m_MachineName;
props["password"] = "mypassword";
props["secure"] = true;
props["protectionLevel"] = System.Net.Security.ProtectionLevel.EncryptAndSign;
props["tokenImpersonationLevel"] = 
    System.Security.Principal.TokenImpersonationLevel.Impersonation;
props["useDefaultCredentials"] = false; 

m_Channel = new TcpClientChannel(props, null);

ChannelServices.RegisterChannel(m_Channel, false);

m_Interface = (DriveServer.DriveInterface) 
Activator.GetObject(typeof(DriveServer.DriveInterface),
   "tcp://" + m_MachineName + ":8085/DriveServer." + m_ServerName);

The last line always generates the exception "The server has rejected the 
client credentials".
date: Fri, 13 Jun 2008 08:01:02 -0700   author:   RFlaugher

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us