I upgraded to 2015.1.7.0 and I can no longer setup a data source for a report to our MySQL db. I have no issues when using 2015.1.6 in our production environment.
We use the winform EUD in our application but to test I created a new project in VS2015 and did the following…
- Add New XtraReport to the project which launched the Report Wizard.
- Picked Data-bound Report
- Picked Database
- Picked No, specify my own connection
- Provider = MySql and all info for our connection
- Picked Yes to save connection
- I enter a simple query in and click next
- If I click to get the schema I get the following error…
Data loading failed because the exception occurred.
Unable to cast object of type 'DevExpress.Xpo.DB.MySqlConnectionProvider' to type 'DevExpress.DataAccess.Native.Sql.ConnectionProviders.IDataStoreEx'
I searched the KB and couldn't find anything. Again, I do not get this error with 15.1.6.
Thanks.
I get the same error when I try to Preview the report.
Hi Joe,
I tried to accomplish the same steps using version 15.1.7, but didn't encounter any issues (please see the attached screencast). From this screencast, I see that the MySQL XPO provider is registered instead of our custom one. So, I think it has to do with some external code or initialize routine that causes this behavior, but the reason remains unclear to me. To find it, we need to investigate your project on our side. Would you please provide it to us? It will greatly help us resolve this issue in a timely manner. Of course, I guarantee that all your information will remain private and be deleted once this issue is resolved. For your safety, I marked this ticket as 'Private' so only Support Team members can access this thread.
I'm looking forward to your reply.
Sorry I duplicated, but after I submitted the ticket I thought it is a Data Access issue and not an XtraReport issue and couldn't find a way to change it.
In your video you used the Query Builder to create the query. If I did that on my end it worked also. Try to type a query in or use a stored proc. The error comes when it tries to run the query to get the fields. If you can't reproduce that way I will create a video to show you.
Thank you for the clarification. I managed to reproduce the issue and forwarded it to our R&D team for further research. Please bear with us. We'll reply here once we have any results.