Application is a VB6 - EXE (C.EXE) calling 2 VB .NET 2003 Framework 1.1 DLLs (A.DLL and B.DLL) via COM interoperability on Windows XP.
OK - Configuration:
All runs without problems on Windows XP, if only the .NET Framework 1.1 is installed on the computer.
It also runs on Vista When Framework 1.1 and Compact Framework 2.0 is installed.
NOT OK Configuration:
On XP, if Framework 2.0 is added to the system, during a long running function in B.DLL following exception is raised after the function has been running for a while:
"An exception 'System.Reflection.TargetE
xception' has occurred in DefaultDomain. However, no debuggers are registered that can debug this exception. Unable to JIT debug."
During the message is shown, the VB6 applications window disappears and the application exits.
We buildt a VB.NET test driver to replace the VB6.EXE (C.EXE) to avoid using COM Interoperability. With this configuration, we did not observe the error, but that does not hel us, since we need to use the VB6 Exe.
??? Are there any Framework Updates that need to be installed ????
<ComClass(CalcAdapter.ClassId, CalcAdapter.InterfaceId, CalcAdapter.EventsId)> _
Public Class CalcAdapter
Public Const ClassId As String = "813A471F-FA74-433a-9254-4852347F705D"
Public Const InterfaceId As String = "31F29B03-119F-4c8e-B699-5700EFC6C41D"
Public Const EventsId As String = "26F047BF-CF95-4478-A431-51CF2CB9F542"