Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

asked on

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

Try to create a WPF browser app.. It reference the System Management Automation.Dll which is 2.0. I get the following error. I tried adding a app.config with the following with no luck.
Any ideas?
thanks

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

  <runtime>
    <generatePublisherEvidence enabled="false" />
  </runtime>
</configuration>
Avatar of Ravi Vaddadi
Ravi Vaddadi
Flag of United States of America image

Could you post the error message?
ASKER CERTIFIED SOLUTION
Avatar of JElster
JElster
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JElster

ASKER

No solution found