Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

COM+ and Type.GetType

Posted on 2004-10-28
3
Medium Priority
?
374 Views
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.

Thanks,
Preetham.
0
Comment
Question by:kingpreetham
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Accepted Solution

by:
Kelmen earned 200 total points
ID: 12442080
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.

HTH
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

597 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