-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: KamalSimi
Message 1 in Discussion

Hi, using System;
using System.IO;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels.HTTP;
namespace Server {
   public class ServiceClass : MarshalByRefObject {
      public void AddMessage (String msg)   {
         Console.WriteLine (msg);
  }}
public class ServerClass {
  public static void Main ()   {
    HTTPChannel c = new HTTPChannel (1095);
    ChannelServices.RegisterChannel (c);
    RemotingServices.RegisterWellKnownType 
("Server","Server.ServiceClass","ServiceClass",WellKnownObjectMode.Singleton);
    Console.WriteLine ("Server ON at 1095");
     Console.WriteLine ("Press enter to stop the server...");
     Console.ReadLine ();
  } }}   This is the code from 
http://www.c-sharpcorner.com/Network/RemotingInNETM.asp and i tried to compile 
with the command given there as   > CSC /r:system.runtime.remoting.dll 
/r:system.dll Server.cs   But unfortunately i'm getting the error as   error 
CS0234: The type or namespace name 'HTTP' does not exist in the class or 
namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly 
reference?)   Some one pl, help me in solving the problem... Thanks in advance, 
Kamal

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to