Library tutorials & articles

Introducing .NET Remoting

Testing it out

Create a table in your database. with the following basic schema:

Table Name-Resume
ResumeID, numeric (autonumber)
UserID, numeric
Title, Char(30)
Body, Text

Double click on the Server exe that we created in step 2, then double click on the Client executable we created in step 3. If everything works out, you should see the row from the database that had the ResumeID of 1.

In closing, .NET remoting is very simple to use and can provide an excellent way to work with resources across your network or the internet.

Comments

  1. 06 Dec 2005 at 13:00

    forget that last post ...

    I found it in my code ... non-application test code I threw in on the quick ... cause the StackOverflow.
  2. 05 Dec 2005 at 22:17

    Hey, did you ever find out what your problem was?

    I got the same error on a completely different project.

    Same M.O. ...

    ... unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll
    during the first call to the object that was returned from the "Activator.GetObject()" call.
  3. 16 Aug 2005 at 06:45

    I encountered the following error message when running the ResumeClient.exe:


    " An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll "


    at the following line of code:


    Resume resume = loader.GetResumeByUserID(1); ;


    but I was able to observe the "New Reference Added!" string on the console of the ResumeSuperServer.  


    Could I safely assume that I already have "loader" as an object of "ResumeLoader", but I failed to obtain "resume" as an object of "Resume" ?

  4. 25 May 2004 at 08:20

    I was looking for a Remoting Sample for beginners for weeks and this was the first that made absolute sense to me. If you are a person with an average IQ like myself, and want to understand the basics of remoting implimentation, this is the tutorial for you!!


    Thanks David for making learning Remoting easy and fun!!




  5. 30 Jan 2004 at 12:11

    I've been looking for a way to implement a cross application boundary component in C# .NET for most of this week. This looks like it will suit my needs perfectly. Thanks.

  6. 27 Feb 2002 at 13:47

    Thanks for pointing this out. I'll update the tutorial

  7. 17 Jan 2002 at 19:48
    I noticed some typo's when playing around with this. (Note I did not use the SQL example since I wanted a very simple example)

    change
       ResumeLoader loader = (ResumeLoader)Activator.GetObject(
           typeof(ResumeServer), "tcp://localhost:9932/ResumeLoader");

       if(rs==null)

    to
       ResumeLoader loader = (ResumeLoader)Activator.GetObject(
           typeof(ResumeLoader), "tcp://localhost:9932/ResumeLoader");

       if(loader==null)


    Note the typeof() change and the change of the test item.

    Hope that is right (I would hate to have typos in my post fixing typos)
  8. 01 Jan 1999 at 00:00

    This thread is for discussions of Introducing .NET Remoting.

Leave a comment

Sign in or Join us (it's free).

David Talbot David Talbot is an experienced Software Architect with a diverse background including creating network applicances, working with television set top boxes, building Billing/CRM systems, Web Portals ...
AddThis

Related podcasts

  • A Practical Look at Silverlight 2 Part 1

    Now that Silverlight 2 is at the Olympics and making a big splash, we wanted to explore this fascinating technology more. Microsoft Silverlight 2 is a cross-browser, cross-platform, and cross-device plug-in for delivering the next generation of .NET based media experiences and rich interactive ap...

Events coming up

  • Nov 18

    15 Minutes of Fame

    Dresher, United States

    This is a yearly tradition. We select 10 of the favorite speakers from monthly meetings, code camps, and hands on labs. Each one does a 15 minute talk on their favorite .NET technology. This is our 10th anniversary so we plan a gala event with special prizes and refreshments.

Want to stay in touch with what's going on? Follow us on twitter!