Click here to Skip to main content
12,764,666 members (38,838 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# .NET .NET4
i have an application that show this error to me when i send datatable to reportdocument!!!
please help...
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.

my app.config file is:

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

but i see this error!!!
Posted 21-Jul-12 3:33am
Updated 21-Jul-12 3:37am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Based on the discussion here: mixed mode assembly is built against version '2.0.50727'[^], it, looks like your C# project references a C++/CLI project that has not yet been updated to .NET 4.0. Open your C++/CLI project in VS 2010 and build it again. And then make sure your C# project is referencing the new DLL and not the old one.
Alireza_Nasr 21-Jul-12 10:04am
i do but i see that error...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 21 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100