Crystal Reports (VS 2019) not pulling new data from MSSQL on some computers?

Issue

This Content is from Stack Overflow. Question asked by Yoni

I have a WPF Console App in C# running on VS 2019.
I have a few Crystal Reports that have worked without any problems.
Suddenly:
If I run in Debug Mode, everything fine
If I run on my computer (the one I develop on), everything is fine.
When I deploy to a users computer.The Report pulls the default data that I used to create the Report, but not the data that I load in the following code:

                        {
                            using (SqlDataAdapter adp = new SqlDataAdapter(cmd))
                            {
                                adp.Fill(ds, "Ledger");
                                report.SetDataSource(ds.Tables["Ledger"]);

                            }
                        }

As I said, on my own system, the program properly loads fresh data from the MS-SQL Server.
But on the other computer, it uses the default
The same program loads another Crystal Report, (inside the same CS file) and that one works fine.

I have tried deleting the entire program and copying it over again.
I cleared the folder in the %AppData%
I am at a loss.

Any suggestions?



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?