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 511617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:14:06+00:00 2026-05-13T07:14:06+00:00

I get the following exception when showing a form: InvalidOperationException was unhandled Mixed mode

  • 0

I get the following exception when showing a form:

InvalidOperationException was unhandled

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

alt text http://img69.imageshack.us/img69/2599/captureya.png

Dont really know why this isnt working. Any help?

  • 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-13T07:14:06+00:00Added an answer on May 13, 2026 at 7:14 am

    I haven’t seen the code for LoginForm. But I think you need to set an app.config flag to fall back to .NET 2.0 era bindings…

    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
    </startup>
    

    First, what’s a mixed mode assembly? A
    mixed mode assembly is an assembly
    that contains both managed (CIL) and
    unmanaged (machine language) code.
    Consequently, they are not portable to
    other CPU instruction sets, just like
    normal C and C++ programs and
    libraries.

    Next, why use them? The primary
    purpose for mixed mode assemblies is
    as “glue”, to e.g. use a C++ library
    class as a base class of a managed
    class. This allows the managed class
    to extend unmanaged methods, allowing
    the managed code to be polymorphic
    with respect to existing unmanaged
    functions. This is extremely useful in
    many contexts. However, as something
    like this involves extending a C++
    class, it requires that the compiler
    know all about the C++ compiler ABI
    (name mangling, virtual function table
    generation and placement, exception
    behavior), and thus effectively
    requires native code. If the base
    class is within a separate .dll, this
    will also require that the mixed mode
    assembly list the native .dll as a
    dependency, so that the native library
    is also loaded when the assembly is
    loaded.

    The other thing that mixed mode
    assemblies support is the ability to
    export new C functions so that other
    programs can LoadLibrary() the
    assembly and GetProcAddress the
    exported C function.

    Both of these capabilities require
    that the shared library loader for the
    platform support Portable Executable
    (PE) files, as assemblies are PE
    files. If the shared library loader
    supports PE files, then the loader can
    ensure that when the assembly is
    loaded, all listed dependent libraries
    are also loaded (case 1), or that
    native apps will be able to load the
    assembly as if it were a native DLL
    and resolve DLL entry points against
    it.

    Source

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

Sidebar

Ask A Question

Stats

  • Questions 275k
  • Answers 275k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Just a couple of days ago, a similar question was… May 13, 2026 at 2:40 pm
  • Editorial Team
    Editorial Team added an answer You should consider using an ImageField in your model. For… May 13, 2026 at 2:40 pm
  • Editorial Team
    Editorial Team added an answer AOP is possible in .NET. Here's an article about it.… May 13, 2026 at 2:40 pm

Related Questions

I cannot seem to get a nested form to generate in a rails view
I've got a global Graphics object created from a Panel. At regular intervals an
I am building the debug version of my app, with full symbols. I set
Google App Engine supports a fetch operation based on a list of keys google.appengine.ext.db.get(
Greetings everyone, going to need some help in clearing this exception. I get the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.