From: Elden Armbrust Elden on


"Jeroen Mostert" wrote:

> On 2010-04-27 2:45, shapper wrote:
> > The project builds fine but when I run it I get the following error:
> >
> > 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.
> >
> > Does anyone knows how to solve this problem?
> >
> Read the message again, especially where it talks about additional
> configuration information. Then search the web for this message. Then solve
> your problem.
>
> --
> J.
> .
>

Why even comment if your "answer" is going to be like that?
You sir, should not "help" anyone until you know what you're doing.

Now, the answer to the question is to create/edit the file <exe name>.config
and add the following:

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

so that the file resembles the following:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>

<runtime>
<generatePublisherEvidence enabled="false" />
</runtime>
</configuration>


So if your application's binary is called "app.exe" then the configuration
file would be named "app.exe.config"

This should fix the problem(s) you're having.

Good luck!
-Elden
From: Elden Armbrust Elden on
You didn't teach him to fish, you pointed at a fishing pole and said "Go
figure it out." The message is NOT answered where it is easily obtainable.
In fact, the reference I posted was from an ASP.Net related post from
Microsoft. Again, before you go spouting nonsense, please educate yourself
on the subject rather than posting something completely useless. There are
enough useless search results on the internet, why would you want to flaunt
your ignorance of the subject?
The issue is closed, I answered the OP's question. Stop being bitter, and
move on with life.
-E


"Jeroen Mostert" wrote:

> On 2010-05-20 21:35, Elden Armbrust wrote:
> >
> >
> > "Jeroen Mostert" wrote:
> >
> >> On 2010-04-27 2:45, shapper wrote:
> >>> The project builds fine but when I run it I get the following error:
> >>>
> >>> 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.
> >>>
> >>> Does anyone knows how to solve this problem?
> >>>
> >> Read the message again, especially where it talks about additional
> >> configuration information. Then search the web for this message. Then solve
> >> your problem.
> >>
> >
> > Why even comment if your "answer" is going to be like that?
>
> Something like "give a man a fish and feed him for a day, beat him with a
> cluestick and he'll knows when he should buy a rod instead of begging for food".
>
> > You sir, should not "help" anyone until you know what you're doing.
> >
> Call it malice if you like, but don't attribute it to ignorance.
>
> --
> J.
> .
>