COM+ and Type.GetType

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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.