Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7603665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:42:51+00:00 2026-05-30T23:42:51+00:00

We use a 3rd party mixed mode assembly that interfaces with a printer device.

  • 0

We use a 3rd party mixed mode assembly that interfaces with a printer device.

In one of our applications, the assembly functions correctly.

In another application, it was generating the following exception:

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

After doing some research, I discovered that I could add the following to the app.config file to resolve this problem:

<startup useLegacyV2RuntimeActivationPolicy="true">

(The application that works already had this setting in its app.config)

Although this did resolve the “Mixed mode assembly” issue, now I’m seeing a somewhat different problem:

External component has thrown an exception

The strange thing is that I have one application which works correctly and another application which does not. They both call the third party assembly via the same code (which is another one of our assemblies).

I tried creating a very simple test app which calls the third party assembly using the same code path, and it also fails with the “External component has thrown an exception” error.

I’ve compared the app.config files for all of the applications and they are essentially the same, and I’ve double checked that all of the build settings are the same for each. Both projects target .NET 4.0 and X86.

There is obviously something different about the two applications but I’m at a loss to identify what it is.

Development environment is Visual Studio 2010.

Does anyone have any suggestions on what other areas I could investigate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:42:52+00:00Added an answer on May 30, 2026 at 11:42 pm

    @tsells was right: there was a missing dependency

    The third party assembly in question depended on another DLL that was present in the first applications bin folder.

    I copied all of the files from the working application’s bin folder to the non-working application’s bin folder, and it resolved the problem.

    From there it was just a matter of deducing which DLL was missing and including it in the second applications project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use a 3rd party tool that outputs a file in Unicode format. However,
If I was to use a 3rd party library that was not in the
I use 3rd party COM to find faces in a picture. One of the
I use a 3rd party library, that does callback operations. It has a function
Are there complete MVVM example solutions that don't use a 3rd party frameworks, Silverlight,
In my application I use 3rd party code that triggers some warnings. I reviewed
We have to use 3rd party DLL in our development process, unfortunately we can't
I use a 3rd party control that (if not licensed) shows a dialog box
I need to use a 3rd party dll in our main app. When I
Use case: 3rd party application wants to programatically monitor a text file being generated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.