473,396 Members | 1,914 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,396 software developers and data experts.

COM+ question

I am passing parameters to a dataccess COM+ object so I needed to
create a serializable class that would allow me to do this, which I
did.

Does this class have to inherit from the ServicedComponent class?

If I do not inherit from the ServicedComponent class I get a "COM
Interop registration failed. Could not find a type library for assembly
'DatabaseParameter'."

If I do inherit from the class I get an error that says

C:\Documents and Settings\chris.olsen\My Documents\Visual Studio
Projects\LABCOM\NUnitTests\ExecuteNonQuery_Tests.v b(300): Value of type
'1-dimensional array of ABLearning.DatabaseParameter' cannot be
converted to '1-dimensional array of ABLearning.DatabaseParameter'
because 'ABLearning.DatabaseParameter' is not derived from
'ABLearning.DatabaseParameter'.

The above is the wierd part since it is having problems converting
DatabaseParameter to DatabaseParameter
If I go with the second altenative what is the proper way to reference
the dll's? Currently I am addin the dll's as references that reside in
the ProgramFiles\COM+Applications\LABCOM folder. Since the dataaccess
(LABCOM) contains the DatabaseParameter class as arguements a copy of
the DatabaseParameter class is also created in the same folder.

I really need some help on this one. Thanks

Feb 7 '06 #1
1 1020
The classes you pass to COM+ as parameters should not inherit from
servicedcomponent. Obviously any other classes these parameters
reference to need to be serializable.

I would also make sure you are using an unchanging version number for
your projects (not 1.0.*, but 1.0.0.0)

--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions

ol*********@gmail.com wrote in news:1139337779.402448.115420
@g44g2000cwa.googlegroups.com:
I am passing parameters to a dataccess COM+ object so I needed to
create a serializable class that would allow me to do this, which I
did.

Does this class have to inherit from the ServicedComponent class?

If I do not inherit from the ServicedComponent class I get a "COM
Interop registration failed. Could not find a type library for assembly
'DatabaseParameter'."

If I do inherit from the class I get an error that says

C:\Documents and Settings\chris.olsen\My Documents\Visual Studio
Projects\LABCOM\NUnitTests\ExecuteNonQuery_Tests.v b(300): Value of type
'1-dimensional array of ABLearning.DatabaseParameter' cannot be
converted to '1-dimensional array of ABLearning.DatabaseParameter'
because 'ABLearning.DatabaseParameter' is not derived from
'ABLearning.DatabaseParameter'.

The above is the wierd part since it is having problems converting
DatabaseParameter to DatabaseParameter
If I go with the second altenative what is the proper way to reference
the dll's? Currently I am addin the dll's as references that reside in
the ProgramFiles\COM+Applications\LABCOM folder. Since the dataaccess
(LABCOM) contains the DatabaseParameter class as arguements a copy of
the DatabaseParameter class is also created in the same folder.

I really need some help on this one. Thanks


Mar 13 '06 #2

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

Similar topics

2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
1
by: Uty | last post by:
As the subject suggests, I have two questions about using COM objects in C#. I'm using two different objects, each of which is giving me a problem. The first object ... we'll call it AppXControl....
9
by: Relaxin | last post by:
Is it possible to CREATE (not use) COM objects with C#? If so, can you point in the right direction? Thanks
6
by: Ollie Riches | last post by:
I understand the use of Application.DoEvents() to process all outstanding messages on the message queue in a winforms application if you have long running process on the UI thread. But can anyone...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.