Why do I get “Database logon failed” in Crystal Reports when using .NET object as datasource?

后端 未结 12 2281
故里飘歌
故里飘歌 2020-12-29 14:45

I am creating a simple report using a .NET object from my project as datasource, using SetDatasource() method. However, when I run the report I get \"Database l

12条回答
  •  既然无缘
    2020-12-29 14:53

    I was struggling with this error for a couple of days. I have a .NET webforms project which uses CrystalReportViewer to load a Crystal Report. Instead of the report loading, I kept getting "Database logon failed".

    I opened the RPT file in Crystal Report Designer and went to Database -> Verify Database

    This gave me a more specific error. FINALLY!!!

    I tracked down the XSD file, moved it to the right location and BOOM

提交回复
热议问题