cancel
Showing results for 
Search instead for 
Did you mean: 

SP21 with Visual Studio 2015 & 2017 SetDataSource Error

david_mills02
Participant
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

🙂

Answers (1)

Answers (1)

0 Kudos

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

Former Member
0 Kudos

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.