Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Check if Remoting server is running?

Check if Remoting server is running?

Scheduled Pinned Locked Moved C#
questionsysadminlearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bog
    wrote on last edited by
    #1

    I have two apps on the same machine, one has to check and see if the other's Remoting server is running, beofore it tries to connect. If it's not running, then the (client) app should launch the other app, and wait for it to finish loading, and then try again to connect. Two questions: 1. How do I check to see if it's running or not? I can just try and catch an exception but I'm wondering if there's a better way. 2. How do you recommend I wait until it starts (with a timeout so I don't wait forever)? thank you "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    T 1 Reply Last reply
    0
    • B Bog

      I have two apps on the same machine, one has to check and see if the other's Remoting server is running, beofore it tries to connect. If it's not running, then the (client) app should launch the other app, and wait for it to finish loading, and then try again to connect. Two questions: 1. How do I check to see if it's running or not? I can just try and catch an exception but I'm wondering if there's a better way. 2. How do you recommend I wait until it starts (with a timeout so I don't wait forever)? thank you "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

      T Offline
      T Offline
      Tatham
      wrote on last edited by
      #2

      If it's hosted as a service use a service controller component... However, what you are trying to do implies that the server is always on the client - why use remoting? :confused: "Enterprise Solution Patterns using Microsoft .NET" says that remoting calls can be at least 1000 times slower than a local call in the CLR. Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989

      B 1 Reply Last reply
      0
      • T Tatham

        If it's hosted as a service use a service controller component... However, what you are trying to do implies that the server is always on the client - why use remoting? :confused: "Enterprise Solution Patterns using Microsoft .NET" says that remoting calls can be at least 1000 times slower than a local call in the CLR. Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989

        B Offline
        B Offline
        Bog
        wrote on last edited by
        #3

        Tathan thanks for your response, I am using remoting to communicate between my BHO and a C# application. The BHO's are loaded by each instance of Internet Explorer, each seperate from one another, and relay information to the application. The nature of a BHO is that it runs in the same process as the IE instance, and therefore isn't in the same CLR as the application (each BHO is in it's own CLR instance). I looked at the ServiceController class, but it seems to be for the purposes of starting and stoppig a windows service. I don't have any services- it's all apps (well and BHO's). (Also btw, a service could be running but have it's remoting server turned off...) Am I missing something? thanks bog "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups