CrystalReports asking for Database login credentai

2019-08-28 05:53发布

问题:

Hi I have a windows form and a Crystal Report (.rpt) in my project. I am using crystal report viewer to view the report. But when I load the form it asks for the Database logon, i.e, username and password! My DB does not have any username and password, it has integrated security. I have tried checking the integrated security box, leaving the fields empty, but it is not logging me in! Please help, I cannot view the report because of this.

回答1:

Use <startup useLegacyV2RuntimeActivationPolicy="True"> in the app.config file.