Crystal Reports Problem with .net 4

前端 未结 1 1502
一向
一向 2021-01-28 12:36

I\'ve worked with Crystal Reports in .net 3.5 before, but since upgrading to .Net 4.0 I\'m facing this error:

\" Error 5 The type or namespace name \'CrystalDecisions\

相关标签:
1条回答
  • 2021-01-28 13:11

    If you have SAP Crystal Reports, version for Visual Studio 2010, here's what you have to do:

    When using ADO.NET with the Microsoft .NET Framework 4.0, the following setting must be added to the application’s configuration file:

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

    I got this information from a PDF on Crystal Reports from here:

    http://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/e06b8953-a62b-2d10-38b9-ca71f747e2b1&utm_source=crvs2010&utm_medium=lp&utm_campaign=supp_platforms

    I hope this helps.

    0 讨论(0)
提交回复
热议问题