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. Web Development
  3. ASP.NET
  4. Launching COM on remote machine from web service

Launching COM on remote machine from web service

Scheduled Pinned Locked Moved ASP.NET
csharpcomsecuritydebugginghelp
1 Posts 1 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.
  • T Offline
    T Offline
    Talal Sultan
    wrote on last edited by
    #1

    Hi people, I have a COM object installed on a remote machine. I have been provided with a .NET assembly to communicate with this COM. The COM is used to validate some data and return the result. I create a small console application that uses the .NET assembly to contact the COM. At first, we had some problems with "Access denied" because of security issues, so now we have set the security of the COM to run under the launching user. The console application works fine and the COM returns the results expected. Now, I'm trying to do the same but from a web service. The idea is to have a windows application contact the web service to run the COM validation. It didn't work, so I thought that maybe I need to impersonate the user calling the .NET assembly that calls the COM. So I used the code on this page: http://west-wind.com/weblog/posts/1572.aspx[^] When I debug, I can see that when I enter the web service method, the impersonation works fine and I can check that Environment.UserName is my username. This username has worked fine when i called the COM from the console application. I could see that the owner of the dllhost process was my username. So, the impersonation works fine but the COM fails to execute when I call the relevant method in the accompanying assembly. I don't seem to understand what could be going wrong here. I don't know much about this COM+ stuff and impersonation, so maybe i'm missing something. Does someone have a clue about this thing and what to do to fix it? Thanks, Talal

    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    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