Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Dll project : 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.

$
0
0

Hi I have a dll project in C#.

I try to update his framework from 2 to 4.

Now when I use : SetDataSource, I have the 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.

 

I try to create an app.config file with:

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

  <startup useLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

</startup>

  </configuration>

 

When I compile I have those file : myapp.dll and myapp.dll.config and planning.rpt

I use this dll in an other winform project (dll project is for plugin)

This winform project use also crstal report and I have an app.Config with the supportedRuntime line and there is no problem.

Have you a solution?

Thank you.

Gwenael


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>