I have created a Remoting application. The code in class Librery is 

```
 public class InitialClass1:MarshalByRefObject
{
    int i=0;
    public InitialClass1()
    {

    }
    public string getInitial(string nam)
    {                
        i++;
        if (nam.ToLower() == "naresh") return i.ToString()+").Jadapalli";
        else if (nam.ToLower() == "balu") return i.ToString() + "Gonugunta";
        else if (nam.ToLower() == "murali") return i.ToString() + "Vempuluri";
        else if (nam.ToLower() == "chandra sekhar") return i.ToString() + "Ponnam";
        else if (nam.ToLower() == "aneev") return i.ToString() + "Katti";
        else if (nam.ToLower() == "rajini") return i.ToString() + "Karlapudi";
        else
            return i.ToString() + "No results";

    }
}

```

the code in Console application is 

```
class Program
{
    [STAThread]
    static void Main(string[] args)
    {
        TcpChannel tcp = new TcpChannel(1234);
        ChannelServices.RegisterChannel(tcp,false);
        string s = ConfigurationManager.AppSettings["remote"];
        RemotingConfiguration.RegisterWellKnownServiceType(typeof(InitialClass1),s,WellKnownObjectMode.SingleCall);
        Console.WriteLine("Remoting starting...");
        Console.ReadLine();            
    }
}

```

Code in Windows application is 

```
 private void button1_Click(object sender, EventArgs e)
    {
        label3.Text = Icls.getInitial(textBox1.Text);
    }

    private void Form1_Load(object sender, EventArgs e)
    {

         string url = ConfigurationManager.AppSettings["remote"];
        TcpChannel chan = new TcpChannel();
        ChannelServices.RegisterChannel(chan, false);

        RemotingConfiguration.ApplicationName = "TestRemoting";
        RemotingConfiguration.RegisterActivatedClientType(typeof(InitialClass1), url);

        Icls = new InitialClass1();

    }

```

It is showing an exception as `Requested Service not found`

code in App.Config file is

```
<configuration>
  <appSettings>
    <add key="remote" value="tcp://localhost:1234/TestRemoting"/>
  </appSettings>
</configuration>

```