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. Accessing .NET Assemblies from COM+ Component

Accessing .NET Assemblies from COM+ Component

Scheduled Pinned Locked Moved C#
csharpquestiondotnetcom
4 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.
  • P Offline
    P Offline
    perlmunger
    wrote on last edited by
    #1

    I have created a COM+ component using C# (System.EnterpriseServices.ServicedComponent). I will register the component with Component Services, however, the component uses other .NET assemblies. What is the best way to access thos assemblies from my serviced component? I don't want to register them in the GAC since they are not shared assemblies. Any suggestions? Thanks. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

    A 1 Reply Last reply
    0
    • P perlmunger

      I have created a COM+ component using C# (System.EnterpriseServices.ServicedComponent). I will register the component with Component Services, however, the component uses other .NET assemblies. What is the best way to access thos assemblies from my serviced component? I don't want to register them in the GAC since they are not shared assemblies. Any suggestions? Thanks. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

      A Offline
      A Offline
      Alex Korchemniy
      wrote on last edited by
      #2

      Is your component going to be deployed as a library application or a server application? If its going to be deployed as a library app then you can just dump the appropriate files into the client applications along with the serviced component assembly. If you are deploying your component as a server applicaiton you should put it in the GAC. This is done to allow the COM+ to load the assembly independent of the directory in which the actual client is running, and also to allow more than one client to use the same assembly. This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

      P 1 Reply Last reply
      0
      • A Alex Korchemniy

        Is your component going to be deployed as a library application or a server application? If its going to be deployed as a library app then you can just dump the appropriate files into the client applications along with the serviced component assembly. If you are deploying your component as a server applicaiton you should put it in the GAC. This is done to allow the COM+ to load the assembly independent of the directory in which the actual client is running, and also to allow more than one client to use the same assembly. This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

        P Offline
        P Offline
        perlmunger
        wrote on last edited by
        #3

        Thanks for your help. I really appreciate it. Will my COM+ component look for the DLLs in the system path? Or is the GAC the only solution if I'm deploying it as a server app? I've just had problems before when I've put component in the GAC and I'm trying to avoid that. Thanks. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

        A 1 Reply Last reply
        0
        • P perlmunger

          Thanks for your help. I really appreciate it. Will my COM+ component look for the DLLs in the system path? Or is the GAC the only solution if I'm deploying it as a server app? I've just had problems before when I've put component in the GAC and I'm trying to avoid that. Thanks. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

          A Offline
          A Offline
          Alex Korchemniy
          wrote on last edited by
          #4

          This is a helpful link: How the Runtime Locates Assemblies[^] This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

          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