Application hangs up. System.Reflection.TargetException

Posted on 2009-02-09
Last Modified: 2013-11-25
Application is a VB6 - EXE  (C.EXE) calling 2 VB .NET DLLs (A.DLL and B.DLL)
On the development PC (PCDev, Windows XP) all runs without problems, in the IDE or as executables.

On another PC (PCUser, Windows XP) it is installed as executables. On this PC, 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.TargetException' has occurred in DefaultDomain. However, no debuggers are registered that can debug this exception. Unable to JIT debug."
During the message is shown, the applications window disappears and the app stops running.

Configuration on PCUser should be correct: a previos Version of the Application (with other versions of C.EXE, A.DLL and B.DLL ran without problems on PCUser.
Question by:joachim58
    1 Comment

    Accepted Solution

    We found that the PCUser was the only one with .NET framework 1.1 and 2.0 installed .

    After removing .NET Framework 2.0 the problem did not occur any longer. (that leads us to the next problem: what to do with users, who need  both frameworks?)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now