CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2002
    Location
    Poland
    Posts
    2

    Problem with remoting and namespaces

    Hi, I'm kinda new to .NET and C#. The current problem is I can't get this "Remote Hello" example working because of namespaces.

    On the beginning of code I have:

    using System;
    using System.Runtime.Remoting;
    using System.Runtime.Remoting.Channels;
    using System.Runtime.Remoting.Channels.Tcp;

    And the problem is with tle last line - every time I try to compile it, I get an error stating:
    The type or namespace name 'Tcp' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?)

    Could any1 give me hint what's wrong? (is it something with .NET configuration? i've made full installation so nothing should be missing).

    Thanks in advance

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    The computer is giving you the answer. You have not added the reference to your assembly.

    Right click on the project, "Add Reference..." and add System.RunTime.Remoting

    When you use system features that are not included by default, you must explicitly add the reference to the project.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Dec 2002
    Location
    Poland
    Posts
    2
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured