|
-
December 29th, 2002, 06:49 AM
#1
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
-
December 29th, 2002, 10:46 AM
#2
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
-
December 29th, 2002, 05:23 PM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|