473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help needed on using COM+ in .NET

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
Nov 15 '05 #1
4 1011
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.

--
Greg Ewing [MVP]
http://www.citidc.com
"irfan" <sy********@ge.com> wrote in message
news:06****************************@phx.gbl...
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

Nov 15 '05 #2
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
Nov 15 '05 #3
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 Ewing [MVP]
http://www.citidc.com

"irfan" <sy********@ge.com> wrote in message
news:04****************************@phx.gbl...
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

Nov 15 '05 #4
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 sy********@ge.com

Thanks,
irfan
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: windandwaves | last post by:
Hi Folks I have just completed a project for an accommodation finder in New Zealand - much with your help - thank you again. I would appreciate any constructive or deconstructive comments. ...
4
by: *** HAWK | last post by:
I'm trying to make a music CD webpage (eg hmv.com) using ASP. I want it to follow these guidelines: All visitors should be able to obtain a list of 1 - all CDs in the database listed by A-Z by...
28
by: stu_gots | last post by:
I have been losing sleep over this puzzle, and I'm convinced my train of thought is heading in the wrong direction. It is difficult to explain my circumstances, so I will present an identical...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
7
by: Tina | last post by:
I have an asp project that has 144 aspx/ascx pages, most with large code-behind files. Recently my dev box has been straining and taking long times to reneder the pages in the dev environment. ...
5
by: Hexman | last post by:
I've come up with an error which the solution eludes me. I get the error: >An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in HRTest.exe > >Additional...
3
by: Kitana907 | last post by:
Hi- I'm attempting to write a module that uses and updates info from two tables and does the following: Opens the recordset of a table called "tblstoreinv" If the Needed Field in the...
13
by: Jennifer.Berube | last post by:
well I'm not sure how to go about making my SQL connection string... The code below is what I need to replace with my SQL connection...I just don't know if that code is for DSN or access... I...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
32
by: =?Utf-8?B?U2l2?= | last post by:
I have a form that I programmatically generate some check boxes and labels on. Later on when I want to draw the form with different data I want to clear the previously created items and then put...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.