473,847 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net Remoting Exception

3 New Member
Hi EveryBody,

I am developing .net remoting application.I have Created server and client application. Server has installed on Two Pc's and cliient have to connect two Pc's and do some functions.

Its working Fine on local machine . But when i tried to connect two PC's, its through an remoting exception

This is my server code:

Dictionary<stri ng, object> props = new Dictionary<stri ng, object>();
props["typeFilterLeve l"] = "Full";
BinaryServerFor matterSinkProvi der provider = new BinaryServerFor matterSinkProvi der(props, null);
props["secure"] = true;
props["port"] = 60800;
TcpChannel tcpchan = new TcpChannel(prop s, null, provider);
ChannelServices .RegisterChanne l(tcpchan, true);

RemotingConfigu ration.CustomEr rorsMode = CustomErrorsMod es.Off;
//TcpChannel remoteChannel = new TcpChannel(6080 0);
//ChannelServices .RegisterChanne l(remoteChannel ,true);
RemotingConfigu ration.Register WellKnownServic eType(typeof(Re mote.cls_SMSLis t), "cls_SMSLis t", WellKnownObject Mode.Singleton) ;

This is my Client Code:

Dictionary<stri ng, object> props = new Dictionary<stri ng, object>();
props["secure"] = true;
props["domain"] = dsPcDetails.Tab les[0].Rows[0]["Dname"].ToString();
props["username"] = dsPcDetails.Tab les[0].Rows[0]["Username"].ToString();
props["password"] = dsPcDetails.Tab les[0].Rows[0]["Password"].ToString();
props["port"] = 0;
Channel = new TcpChannel(prop s, null, null);
ChannelServices .RegisterChanne l(Channel, true);
PcnameList.Add( dsPcDetails.Tab les[0].Rows[0]["PCName"].ToString());

ObjSMS = (Remote.cls_SMS List)Activator. GetObject(typeo f(Remote.cls_SM SList), "tcp://" + IPadd + "/cls_SMSList");




A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Server stack trace:
at System.Net.Sock ets.Socket.DoCo nnect(EndPoint endPointSnapsho t, SocketAddress socketAddress)
at System.Net.Sock ets.Socket.Conn ect(EndPoint remoteEP)
at System.Runtime. Remoting.Channe ls.RemoteConnec tion.CreateNewS ocket(EndPoint ipEndPoint)
at System.Runtime. Remoting.Channe ls.RemoteConnec tion.CreateNewS ocket()
at System.Runtime. Remoting.Channe ls.SocketCache. GetSocket(Strin g machinePortAndS id, Boolean openNew)
at System.Runtime. Remoting.Channe ls.Tcp.TcpClien tTransportSink. SendRequestWith Retry(IMessage msg, ITransportHeade rs requestHeaders, Stream requestStream)
at System.Runtime. Remoting.Channe ls.Tcp.TcpClien tTransportSink. ProcessMessage( IMessage msg, ITransportHeade rs requestHeaders, Stream requestStream, ITransportHeade rs& responseHeaders , Stream& responseStream)
at System.Runtime. Remoting.Channe ls.BinaryClient FormatterSink.S yncProcessMessa ge(IMessage msg)

Exception rethrown at [0]:
at System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage reqMsg, IMessage retMsg)
at System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData& msgData, Int32 type)
at Remote.cls_SMSL ist.CreateSMSLi st(List`1 ComPort)
at cls_QueueList.L oadMobiles()


Any help Would be appriciated.
Feb 23 '09 #1
0 1580

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2935
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to use them. No IIS. Use TCP, binary. Standard server example with a console host and console client. .NET 1.1, windows XP. (I tried posting to the remoting newsgroup, no answers in the last couple days, trying here in hopes that more people watch this...
0
3850
by: Mike Grishaber | last post by:
Hello All, I am using an IHttpAsyncHandler class to intercept HTTP Requests and forward them to a system which processes the Request and returns the Result. I use .NET Remoting to connect the IHttpAsyncHandler object to the System and transfer the Request and Result between the two. This works fine for quite a while, and then I start to get the following error. "This remoting proxy has no channel sink which means either the server has
15
5756
by: Sharon | last post by:
I’m trying to build a generic Publisher-Subscriber that will work over the net, so I’m using the Remoting. I wish that the subscriber user will be notify about the messages sent by the remote publisher, so I used delegate that the user will be able to set on it his own function for that purpuse. The trouble is that this delegate must not be static because there may be many subscribers, and each subscriber may have different...
4
3120
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give it a go). What I want to do is this: Have a server instance of the program, this server instance will receive communication from client programs (as demonstrated in the AddMessage()
1
2694
by: David Krmpotic | last post by:
Hi All! I have a .NET remoting Client-Server application with Server Activated Objects only.. something is worrying me.. sometimes (rarely), I can't connect to the server although it is running. I get the exception saying "A socket operation was attempted to an unreachable host".. it means that it behaves the same as if the server
0
2486
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a light on the following: I have been given a sample winforms app, which works without problem, I can connect, send queries and become response from the other application. When I try to implement this in webforms, this unfortunately does not...
4
2271
by: Sharon | last post by:
Hi, I'm using the remoting, and I have a remoting object that has a public event that other processes should register to it. But when the client process is registering to the remote event, it throw the following exception: System.Runtime.Serialization.SerializationException {“Cannot find the assembly Tester, Version=1.0.2164.27180, Culture=neutral, PublicKeyToken=null.”}
3
424
by: Mike9900 | last post by:
We need to get the correct error message from the .NET Remoting server on the another computer. When we use .NET Remoting the client does not receive correct SQL Server error message if the client is on the another computer. For example, if the client deleted a record in SQL Server and the SQL Server throw and exception, the exeption message is not sent to the client as the correct SQL Server message, instead the exception is either...
0
3406
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false); I get the following error - doesn't matter if I try it local from my machine or from a remote machine. (After the Errormessage is more text ;))
0
10978
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10643
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10705
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9477
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7879
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7050
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.