TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
keenweng2001
NA
27
0
.Net remoting problem
Sep 23 2004 4:31 AM
Hello, i am currently created an application that related to the remoting control. I have created 3 file, can anyone tell me what i am wrong : 1) The remote object (RemoteDesktopDLL.dll) 2) The server implement in window services, this server is together with a web configuration file(RemotingServerWebService.exe.config) 3) the client My problem is after i start the server windows services, the client still not able to connect to the remote object. Below is part of my code: Client ChannelServices.RegisterChannel(new TcpChannel()); RemotingConfiguration.RegisterWellKnownClientType(typeof(CaptureScreen), "tcp://" + machineName + ":8081/RemotingServerWebService/CaptureScreen"); RemoteObj = new CaptureScreen(); Server protected override void OnStart(string[] args) {Thread listenerThread = new Thread(new ThreadStart(this.Listen)); listenerThread.Start();} private void Listen() {try {string fileName = AppDomain.CurrentDomain.BaseDirectory+"RemotingServerWebService.exe.config"; RemotingConfiguration.Configure(fileName); CaptureScreen m=new CaptureScreen(); RemotingServices.Marshal((m),"CaptureScreen"); } RemotingServerWebService.exe.config
Reply
Answers (
1
)
a problem with web user control events
Can i create a custom datagrid that is not bound to any Database table