473,513 Members | 2,560 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DLL Hell with ADO (COM) and ADO.Net

Hello,

I am having an absolute nightmare with a DLL Hell linked with ADO.

The application is truly simple:

- A Win32 application sends via MSMQ some ADODB.Recordset (v 2.5)
- A C# app receives the Message and save it to the DB.

Now here is the trick:
- I receive an ADODB.Recordset which uses ADO
- I save to the DB using ADO.Net

When I close the App I get an exception message:

"An unhandled exception of type 'System.InvalidOperationException'
occurred in system.data.dll
Additional information: Handle is not initialized."

which happens when I close the app and I close an ADO.Net connection.
When I mess up big time with the way I create my "interop.dlls" it
works for that app but not for other apps that uses both ADODB and
ADO.Net.

Is anyone using successfully both version of ADO in their app without
problems please? If so what is the trick?

Many thanks,
Michael

--
Michael
----
http://michael.moreno.free.fr/
http://port.cogolin.free.fr/
Jul 25 '06 #1
0 954

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

Similar topics

22
2271
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on this deception for some..... "Michael A. Covington" <look@ai.uga.edu.for.address> wrote in message news:%23tKbygELFHA.576@TK2MSFTNGP15.phx.gbl......
2
2146
by: Nad | last post by:
Hello, dll hell has been eliminated in .NET using assembly versioning. I am new in .NET and would like to know if there is any dll-hell-equivalent in .NET Windows or Web development environments that need to be addressed/aware of? Thank you.
3
1298
by: Tamir Khason | last post by:
I have COM. I make it interoped with strong key. Works fine so far in dev enviroment, BUT once transfer to production the application using this interop wont start. original COM in directory with interoped COM, but the registeration of COM made from system32 folder (this should be this way) Once more: THE EXACTLY SAME configuration (except...
1
1703
by: GreatB | last post by:
Bill Gates died in a car accident. He found himself in Purgatory being sized up by God . .. "Well, Bill, I'm really confused on this call. I'm not sure whether to send you to Heaven or Hell. After all, you enormously helped society by putting a computer in almost every home in the world and yet you created that ghastly Windows 95. I'm...
0
1081
by: Jeff S | last post by:
I'm trying to more fully understand how .NET gets us out of dll hell by more clearly understanding what goes into the manifest and contrasting that with and what life was like before the manifest. Specifically, I would like to know why COM components need to be registered in the Windows System Registry. Registering COM components has been a...
18
1996
by: Dave Sauny | last post by:
Ok, its a friday, I'm at work and I cant get this to work: I have 3 listboxes on one tab control page. when i select an item in listbox1 i want whatever is selected on the other 2 listboxes unselected. when listbox2 is selected, 1 and 3 should have no items selected and the same with listbox 3. Sounds simple... should be simple! I have...
5
2409
by: Gary Dunne | last post by:
I have a versioning problem with a .Net component. The component (COM DLL) was originally compiled to version 1.0.x.x . The application that calls this component is a VB 6 Exe. Having recompiled the component to version 1.3.x.x (no code changes just getting the version numbers to conform to company policy), uninstalled the original...
3
1611
by: fyleow | last post by:
I just spent hours trying to figure out why even after I set my SQL table attributes to UTF-8 only garbage kept adding into the database. Apparently you need to execute "SET NAMES 'utf8'" before inserting into the tables. Does anyone have experience working with other languages using Django or Turbogears? I just need to be able to retrieve...
2
2030
by: Scott M. | last post by:
I need a little help please... I'm simply trying to set up a very basic event for a class and then create an event handler for that class in a Console application. I think I'm very close, but I'm missing something. Here's what I've got... //Abbreviated class code using System; namespace foo
0
7178
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7128
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3255
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.