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

  • Home
  • SEARCH
  • 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 7868669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:04:23+00:00 2026-06-03T01:04:23+00:00

I have an assembly that works perfectly when using the .Net framework 3.5 but

  • 0

I have an assembly that works perfectly when using the .Net framework 3.5 but when using it in 4 it gives an error that the assembly couldn’t be loaded. Does anyone know a solution to this problem ? (I can’t change the assembly in anyway or change the projects target framework because this would remove the purpose of the application) Programing code is c#.

Basicly : I’m creating an application in the .Net 4 framework but the assembly isn’t compatible with it.

Following error : Assembly with mixed modus is created with version v2.0.50727 from runtime and can’t be loaded without extra configuration information in runtime version 4.0.

  • 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-06-03T01:04:26+00:00Added an answer on June 3, 2026 at 1:04 am

    The best would probably be to recompile your class library for .NET 4.0 in Visual Studio 2010 (ie. opening up the project, converting it, and changing the target framework.)

    If you can’t, or won’t, do that, then you can try adding the following to your app.config file for your .NET 4.0 application:

    Add this configuration in app.config.

    <?xml version="1.0"?>
    <configuration>
      <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
      </startup>
    </configuration>
    

    The key is the useLegacyV2RuntimeActivationPolicy flag. This causes the CLR to use the latest version (4.0) to load your mixed mode assembly. Without this, it will not work.

    Note that this only matters for mixed mode (C++/CLI) assemblies. You can load all managed CLR 3.5 assemblies without specifying this in app.config.

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

Sidebar

Related Questions

I have an InteropUserControl in a .NET assembly that works fine in other operating
So, i have an assembly that i loaded into the interface, and it works
I have a .NET assembly that has tens of classes and methods which are
I have a .net assembly that contains data access code (a bunch of Typed
I have a .NET assembly that needs to be 32-Bit and needs to be
I have a .NET assembly DLL that is created on-the-fly from pre-compiled code in
I have a c# .NET assembly that gets called from a C++ COM client.
I have created a website using ASP.NET MVC and use ELMAH for error handling,
I have a simple piece of assembly code that works correctly on Mac OS
We have a WinForms app, written in VB.NET (CLR 2.0), that does a lot

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.