Help needed on using COM+ in .NET

  • Thread starter Thread starter irfan
  • Start date Start date
I

irfan

Hi there!!

I have a .NET COM+ DLL written in C# which works fine and
installs well on my Dev machine. When I move from dev to
another setup machine which does not have VS.NET or
VS6.0, I am unable to install this .NET COM+ DLL. I get
the error "System.Reflection.ReflectionTypeLoadException".

Also, I tried installing the .NET COM+ DLL by exporting
the proxy of it. Once I start the .MSI file, I get an
error "Error registering the COM+ dll"

can someone help me out in this?? I shall be grateful..

thanks,
irfan
 
irfan, does your second machine have the .Net runtime? You have to have
that to register your component. Secondly, do you have any dependencies in
your application that you might have forgotten to move over? If you have
any references, make sure their dll's are copied to the setup machine.
 
Hi Greg,

First of all, thanks a ton for replying to my question.

well, I have installed .NET Framework on the target
machine. I guess the .NET Runtime would accompany the
framework.!!! Kindly correct me if I'm wrong..

regarding the dependencies, I've checked all of them and
they are available during the installation.

Thnx
irfan
 
irfan, yes, you are right. If the framework is installed the runtime is
installed.

Could you try running "regsvr32 dllName" (where dllName is the complete path
and name of your dll) on the machine on which you are getting the error.
That should give you some more detailed information about what's doing
wrong. Let us know what you see.
 
greg,

i tried doing that and it says, "could not find the clsid
for <some guid>"

Furthermore, I have prepared a setup on my development
machine and placed all the dependency DLLs on a single
location. Since my app. is a COM+ I had to sign each of
the DLLs and create the new interops. I have a batch file
that would register all the DLLs. I then created a setup
file with all the DLLs and batch file.

Now, on the target m/c I ran the setup and it installed
alll the DLLs correctly to my surprise. My app now works
quite fine. I don't understand what exactly the problem
was.

anyway, thanks once again.

you could as well email me at (e-mail address removed)

Thanks,
irfan
 
Back
Top