Click here to Skip to main content
15,879,844 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi 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!!!
Updated 21-Jul-12 2:37am

1 solution

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.
Share this answer
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)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900