• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

C# Remoting Problems

Hi guys I am currently trying to make a server and client application via remoting in C#
I was pointed to this article:

http://www.codeproject.com/KB/IP/Net_Remoting.aspx

After taking the code from there and putting it into my own projects and a lot of headaches I still cant get these two to work together.

Visual studio shows no errors for both projects, but the problem is after i press the "Send" button on the client application i get an error.

I have uploaded my projects to my web server so please feel free to look at them and correct anything that is wrong with them. Here is the link:

http://www.programming-help.com/csharp/ServerAndClient.zip

Thanks in advance!

-Anthony
0
Anthony408
Asked:
Anthony408
  • 2
  • 2
2 Solutions
 
Anurag ThakurTechnical ManagerCommented:
is you firewall configured as on or off
if its on then try connecting to the remoting server by switching it off
0
 
CebikCommented:
i cant find why!
maybe because you have 2 class RemotableObjects
i think it must be common
or 2 class but with the same interface

i make example based on this article and it's work
(when this class is common)

http://www.speedyshare.com/332700917.html
0
 
CebikCommented:
and project in vs2005 express
http://www.speedyshare.com/146239156.html
start solution from Remoting\Remoting.sln
0
 
Anthony408Author Commented:
I found the problem: in both projects they need to have the same namespace and my firewall like ragi0017 said needs to be off or at least allow access to the server application.

Thanks to everyone that helped!
0
 
Anthony408Author Commented:
Thanks everyone!
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now