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. COM
  4. Calling a VB.NET COM+ Remotely

Calling a VB.NET COM+ Remotely

Scheduled Pinned Locked Moved COM
sysadminhelpcsharpdotnet
2 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.
  • A Offline
    A Offline
    Andez2004
    wrote on last edited by
    #1

    All, We have code to call a component remotely from a standard VB.NET Form. I've compiled the code on my machine and it works fine. Calling from another client over the network causes the following error message: Retrieving the COM class factory for remote component with CLSID {F655F1E8-50B6-31EF-9C5D-B14B7D9B56D3} from machine XP1111 failed due to the following error: 80070005. The Client Call is made as follows: Dim svr As Type = Type.GetTypeFromProgID("ZFTestCOMPlus.ZFComPlusOne", _ txtServer.Text) ' txtServer.Text is the name of the server e.g "XP1111" Dim o As Object = Activator.CreateInstance(svr) Dim x As ZFTestCOMPlus.ZFComPlusOne = CType(o, ZFTestCOMPlus.ZFComPlusOne) Dim str As String = x.GetSomeDataFromMe() The problem occurs on the line Dim o As Object = Activator.CreateInstance(svr). This is the first COM+ application that has been written here. It is totally client based but users Library COM+ Application (which causes all kinds off issues). The component is a COM+ Server Application with one class and 2 methods. Troubleshooting (in the dark) so far... 1. Installed Component into GAC. 2. Created a MSI from COM+ to install the components on remote machine as a proxy. 2. Added user calling the component from the remote machine to a role under the COM+ Application. This role has been given access to ZFTestCOMPlus.ZFComPlusOne class 3. Tried disabling Enforce access checks for this application. 4. Granted full access/remote launch to the user in dcomdnfg in the COM Security tab. Anyone have any ideas? Just fumbling about in the dark at the mo and not come across any decent artices :mad: :(( :confused: :sigh: Andez

    S 1 Reply Last reply
    0
    • A Andez2004

      All, We have code to call a component remotely from a standard VB.NET Form. I've compiled the code on my machine and it works fine. Calling from another client over the network causes the following error message: Retrieving the COM class factory for remote component with CLSID {F655F1E8-50B6-31EF-9C5D-B14B7D9B56D3} from machine XP1111 failed due to the following error: 80070005. The Client Call is made as follows: Dim svr As Type = Type.GetTypeFromProgID("ZFTestCOMPlus.ZFComPlusOne", _ txtServer.Text) ' txtServer.Text is the name of the server e.g "XP1111" Dim o As Object = Activator.CreateInstance(svr) Dim x As ZFTestCOMPlus.ZFComPlusOne = CType(o, ZFTestCOMPlus.ZFComPlusOne) Dim str As String = x.GetSomeDataFromMe() The problem occurs on the line Dim o As Object = Activator.CreateInstance(svr). This is the first COM+ application that has been written here. It is totally client based but users Library COM+ Application (which causes all kinds off issues). The component is a COM+ Server Application with one class and 2 methods. Troubleshooting (in the dark) so far... 1. Installed Component into GAC. 2. Created a MSI from COM+ to install the components on remote machine as a proxy. 2. Added user calling the component from the remote machine to a role under the COM+ Application. This role has been given access to ZFTestCOMPlus.ZFComPlusOne class 3. Tried disabling Enforce access checks for this application. 4. Granted full access/remote launch to the user in dcomdnfg in the COM Security tab. Anyone have any ideas? Just fumbling about in the dark at the mo and not come across any decent artices :mad: :(( :confused: :sigh: Andez

      S Offline
      S Offline
      sunil2004
      wrote on last edited by
      #2

      This is permission problem, is the user has the execute permission on the remote machine? Please try to use the credential of user who has administrator rights on remote m/c Regards, Sunil Tonger

      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