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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Using COM from Web Service

Using COM from Web Service

Scheduled Pinned Locked Moved C#
comcsharphelpquestion
2 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.
  • C Offline
    C Offline
    Crazy Joe Devola
    wrote on last edited by
    #1

    Hi I am trying to create a ActiveX object from a C# web service. When I create the object I get a "Permission denined" exception. If I create the same object not from a web service, it works OK. Here is the code: V8O_PLU.CPluClass o ; // COM object o = new V8O_PLU.CPluClass(); // exception occurs Late biding causes same problem: Type ObjectType = Type.GetTypeFromProgID("V8O_PLU.CPlu"); object po = Activator.CreateInstance(ObjectType); Can anyone please advise why is this happening? as I said, the same code works OK from a non-web-service code (e.g. WinForm). Thank you.

    C 1 Reply Last reply
    0
    • C Crazy Joe Devola

      Hi I am trying to create a ActiveX object from a C# web service. When I create the object I get a "Permission denined" exception. If I create the same object not from a web service, it works OK. Here is the code: V8O_PLU.CPluClass o ; // COM object o = new V8O_PLU.CPluClass(); // exception occurs Late biding causes same problem: Type ObjectType = Type.GetTypeFromProgID("V8O_PLU.CPlu"); object po = Activator.CreateInstance(ObjectType); Can anyone please advise why is this happening? as I said, the same code works OK from a non-web-service code (e.g. WinForm). Thank you.

      C Offline
      C Offline
      Crazy Joe Devola
      wrote on last edited by
      #2

      The problem was that aspnet_wp.exe runs under the user ASPNET . The ASPNET user is defined as part of the Users group. For some reason, on my development PC the ActiveX DLL's do not have permision for the Users to access. . Once I added the Users to the security list of my ActiveX's it works OK. On my QA systems these DLL's do allow the Users group to run them. Strange.

      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