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. RPC Error

RPC Error

Scheduled Pinned Locked Moved C#
sysadminhelpcomquestion
6 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.
  • S Offline
    S Offline
    Syed Shahid Hussain
    wrote on last edited by
    #1

    Hei, I'm trying to get the Processor IDs of different PCs on the network. It works fine for one PC but when I use it to fetch IDs of more then one PC it return the IDs of first system and gives error at the second PC. Error RPC server is unavailable. (Exception from HRESULT: 0x800706BA) I have search this problem over the net and find this solution. http://support.microsoft.com/kb/884564[^] but each time i cant restart the system for taking the id of second PC.' Any Solution? Thanks

    Syed Shahid Hussain

    D 1 Reply Last reply
    0
    • S Syed Shahid Hussain

      Hei, I'm trying to get the Processor IDs of different PCs on the network. It works fine for one PC but when I use it to fetch IDs of more then one PC it return the IDs of first system and gives error at the second PC. Error RPC server is unavailable. (Exception from HRESULT: 0x800706BA) I have search this problem over the net and find this solution. http://support.microsoft.com/kb/884564[^] but each time i cant restart the system for taking the id of second PC.' Any Solution? Thanks

      Syed Shahid Hussain

      D Offline
      D Offline
      Dimitri Witkowski
      wrote on last edited by
      #2

      How do you get the processor ID on the remote machine? I have always used WMI for that: http://msdn.microsoft.com/en-us/library/aa394373(VS.85).aspx[^]

      Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.

      S 1 Reply Last reply
      0
      • D Dimitri Witkowski

        How do you get the processor ID on the remote machine? I have always used WMI for that: http://msdn.microsoft.com/en-us/library/aa394373(VS.85).aspx[^]

        Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.

        S Offline
        S Offline
        Syed Shahid Hussain
        wrote on last edited by
        #3

        I'm using ManagementScope scope = new ManagementScope("system path"); ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_Processor"); ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query); ManagementObjectCollection queryCollection = searcher.Get(); Now search here for "ProcessorId" Is it the right way?

        Syed Shahid Hussain

        D 1 Reply Last reply
        0
        • S Syed Shahid Hussain

          I'm using ManagementScope scope = new ManagementScope("system path"); ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_Processor"); ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query); ManagementObjectCollection queryCollection = searcher.Get(); Now search here for "ProcessorId" Is it the right way?

          Syed Shahid Hussain

          D Offline
          D Offline
          Dimitri Witkowski
          wrote on last edited by
          #4

          Seems to be correct... Is "system path" in this format? \\\\FullComputerName\\root\\cimv2 Also, you don't call scope.Connect(). Maybe this is the reason? Here's an example: http://msdn.microsoft.com/en-us/library/system.management.managementscope.aspx[^]

          Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.

          S 1 Reply Last reply
          0
          • D Dimitri Witkowski

            Seems to be correct... Is "system path" in this format? \\\\FullComputerName\\root\\cimv2 Also, you don't call scope.Connect(). Maybe this is the reason? Here's an example: http://msdn.microsoft.com/en-us/library/system.management.managementscope.aspx[^]

            Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.

            S Offline
            S Offline
            Syed Shahid Hussain
            wrote on last edited by
            #5

            Thanks Dmitry for ur quick reply. ur syntax is right. And here i have send the short code. I have called coonnect method and all other thing related to that but problem is here with

            scope.connect()

            When the control comes at this point at the secong time it give this RPC error . What to do in ur suggestion. Is there any other way for geting the LAN PC's processor IDs ?:confused: Thanks

            Syed Shahid Hussain

            D 1 Reply Last reply
            0
            • S Syed Shahid Hussain

              Thanks Dmitry for ur quick reply. ur syntax is right. And here i have send the short code. I have called coonnect method and all other thing related to that but problem is here with

              scope.connect()

              When the control comes at this point at the secong time it give this RPC error . What to do in ur suggestion. Is there any other way for geting the LAN PC's processor IDs ?:confused: Thanks

              Syed Shahid Hussain

              D Offline
              D Offline
              Dimitri Witkowski
              wrote on last edited by
              #6

              Hm... Maybe this [^] of this [^] will help?

              Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.

              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