COM+ and Type.GetType

Posted on 2004-10-28
Last Modified: 2011-10-03
Hi All,
 I am having a problem querying type info from a COM+ server application.
I have a library A.dll stored in the same directory as my com+ application dll. Also, i have added the COM+ dll and A.dll to the GAC. A.dll is loaded dynamically by com+ app, not present in the references. In the com+ component, when i try to create an instance by calling
Activator.CreateInstance(Type.GetType( typename))

Where typename = "A.X,A" where A is the namespace and X is the class, Type.GetType returns null.

However, when i copy A.dll to windows\System32 it finds the Type. Why does the COM+ component written in C# look for the library in System32.

Question by:kingpreetham
    1 Comment
    LVL 5

    Accepted Solution

    Activation of COM+ in .NET is through mscoree.dll, which is resided in system32 folder. I guess your COM+ is server activated.

    Just an idea, try change your COM+ to use library activation.

    You may try Assembly.LoadFrom and Assembly.CreateInstance.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now