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. COM+ proxy application problem

COM+ proxy application problem

Scheduled Pinned Locked Moved COM
helpcsharpcomsysadmin
4 Posts 4 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.
  • U Offline
    U Offline
    User 763291
    wrote on last edited by
    #1

    Hi: I have a com+ component installed using a application proxy on a remote computer. By the way, I have no problems when running the local client. I'm using a VB.NET Client. The problem occurs when I try to execute a method on the remote object: -------------------------------------------------------------- An unhandled exception of type 'System.InvalidCastException' occurred in Client.exe Additional information: QueryInterface for interface MyComponentLib.IMyInterface failed. -------------------------------------------------------------- Interestingly, The instantiation of the remote object by CreateObject succeeds and the application is activated on the server machine, i.e., I can see the rolling icon animation. Activating proxy in OLEVIEW also succeeds. The security is set to Interactive at this point. If I use a VB6 client I get 'Run-Time Error 424 Object Required' when I call CreateObject!! This is a very simple COM+ app but I'm really stuck! I'll appreciate any help... Thanks

    M 1 Reply Last reply
    0
    • U User 763291

      Hi: I have a com+ component installed using a application proxy on a remote computer. By the way, I have no problems when running the local client. I'm using a VB.NET Client. The problem occurs when I try to execute a method on the remote object: -------------------------------------------------------------- An unhandled exception of type 'System.InvalidCastException' occurred in Client.exe Additional information: QueryInterface for interface MyComponentLib.IMyInterface failed. -------------------------------------------------------------- Interestingly, The instantiation of the remote object by CreateObject succeeds and the application is activated on the server machine, i.e., I can see the rolling icon animation. Activating proxy in OLEVIEW also succeeds. The security is set to Interactive at this point. If I use a VB6 client I get 'Run-Time Error 424 Object Required' when I call CreateObject!! This is a very simple COM+ app but I'm really stuck! I'll appreciate any help... Thanks

      M Offline
      M Offline
      MultiThread
      wrote on last edited by
      #2

      Greets, Is the interface for the COM+ application which is installed on the server also available to your application on the client machine? Did you export the application from the server and install it on the client machine from which your application is running? When I refer to application, you can install your component in COM+ on the server machine, then use COM+ services to export an MSI package that will install the necessary information on the client needed to make the call remotely. Regards, Joe

      A 1 Reply Last reply
      0
      • M MultiThread

        Greets, Is the interface for the COM+ application which is installed on the server also available to your application on the client machine? Did you export the application from the server and install it on the client machine from which your application is running? When I refer to application, you can install your component in COM+ on the server machine, then use COM+ services to export an MSI package that will install the necessary information on the client needed to make the call remotely. Regards, Joe

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        The proxy appliction was exported from the server appliations as MSI package which was then installed on the client machine. The local client works fine. What I have seen in the debugger is that the remote client can instantiate the component. The query to object's IUnknown interface succeeds, i.e., returns S_OK. However after that what happens I don't know - I can't see it in the debugger.

        S 1 Reply Last reply
        0
        • A Anonymous

          The proxy appliction was exported from the server appliations as MSI package which was then installed on the client machine. The local client works fine. What I have seen in the debugger is that the remote client can instantiate the component. The query to object's IUnknown interface succeeds, i.e., returns S_OK. However after that what happens I don't know - I can't see it in the debugger.

          S Offline
          S Offline
          Steve S
          wrote on last edited by
          #4

          How is your client calling CoInitializeSecurity? Are your client and server using the same or different SIDs? Steve S

          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