Skip to Content
avatar image
Former Member

SP21 with Visual Studio 2015 & 2017 SetDataSource Error

I downloaded and installed SP21 but both Visual Studio 2105 and 2017 are returning an error for myReportDocument.SetDataSource(ds)

The data source table has a record

Is there a change in how SetDataSource is used?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 06, 2017 at 12:28 AM

    I could resolve, taking out all crystal reports references in my web.config,

    and changing from net.framework 3.5 to 4.6.1 in the application properties.

    :)

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2017 at 04:04 PM

    Hi David,

    Second person reporting this issue. I tested it and it works for me.

    Did you remove the Legacy mode from your app.config file?

    <startup useLegacyV2RuntimeActivationPolicy="true">

    to

    <startup>

    Don

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I have the same trouble, y have a web aplication in Visual Studio 2017,

      are returning error in SetDataSource(ds).

      I don't have app.config in my project.