Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / April 2008

Tip: Looking for answers? Try searching our database.

.net remoting - not listening

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Piotrekk - 16 Apr 2008 13:02 GMT
Hi

I have a problem with my server which is not visible after netstat -na
command.

1. remote class library compiled to dll and registered to GAC

namespace RemoteClass
{
   public class Mathematica : MarshalByRefObject
   {
       public int GetProduct(int a, int b)
       {
           return a * b;
       }

       public string GetHostLocation()
       {
           return AppDomain.CurrentDomain.FriendlyName;
       }
   }
}

2. server created and configured

namespace RemotingHost
{
   class Program
   {
       static void Main(string[] args)
       {

System.Runtime.Remoting.RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile,false);

           Console.WriteLine("Press any key to shut down the
server");
           Console.ReadLine();
       }
   }
}

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <system.runtime.remoting>
   <application>
     <service>
       <wellknown mode="Singleton"  type="RemoteClass.Mathematica,
RemoteClass" objectUri="RemoteClass"/>
       <channels>
         <channel ref="tvp" port="5000"/>
       </channels>
     </service>
   </application>
 </system.runtime.remoting>
</configuration>

Can you help me with this example? I don't have any ideas why server
is not listening. Firewall is switched off. i have also tried to set
objectUri to Mathematica
Kind regards
PK
Willy Denoyette [MVP] - 16 Apr 2008 15:02 GMT
> Hi
>
[quoted text clipped - 57 lines]
> Kind regards
> PK

what channel is "tvp" supposed to relate to?
<channel ref="tvp" port="5000"/>

Willy.
Piotrekk - 16 Apr 2008 15:35 GMT
> what channel is "tvp" supposed to relate to?
> <channel ref="tvp" port="5000"/>
>
> Willy.

Sorry - this is only mistake during copy paste - I have changed it to
tcp, however it is not working.
Willy Denoyette [MVP] - 16 Apr 2008 16:12 GMT
>> what channel is "tvp" supposed to relate to?
>> <channel ref="tvp" port="5000"/>
[quoted text clipped - 3 lines]
> Sorry - this is only mistake during copy paste - I have changed it to
> tcp, however it is not working.

Another mistake during copy/paste?

     <service>
       <wellknown mode="Singleton"  type="RemoteClass.Mathematica,
RemoteClass" objectUri="RemoteClass"/>
     </service>
     <channels>
         <channel ref="tcp" port="5000"/>
     </channels>

Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.