Bug Report T295901
Visible to All Users

Report DataSource Wizard throws the InvalidCastException on an attempt to connect to the MySQL database

created 9 years ago (modified 9 years ago)

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…

  1. Add New XtraReport to the project which launched the Report Wizard.
  2. Picked Data-bound Report
  3. Picked Database
  4. Picked No, specify my own connection
  5. Provider = MySql and all info for our connection
  6. Picked Yes to save connection
  7. I enter a simple query in and click next
  8. 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.

Show previous comments (2)
JS JS
Joe Saporito 3 9 years ago

    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.

    JS JS
    Joe Saporito 3 9 years ago

      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.

      Yaroslav (DevExpress Support) 9 years ago

        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.

        Answers approved by DevExpress Support

        created 9 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Show previous comments (8)
          Yaroslav (DevExpress Support) 9 years ago

            Thank you for this additional information, Joe, it was extremely helpful. I managed to reproduce the described issue and decided to extract it into a separate thread: Report DataSource Wizard throws an exception on selecting a MySQL stored procedure with a LONGBLOB parameter. I've notified our developers regarding this issue and we'll reply in that thread once we have any results. Your patience and cooperation are appreciated.

            FZ FZ
            Fernando Zorzeto 9 years ago

              Hello Yaroslav,
              I'm having this same problem, so that the hotfix does not install on my machine.
              can you help me?

              Vasily (DevExpress Support) 9 years ago

                Hello Fernando,

                To process your recent post more efficiently, I created a separate ticket on your behalf: T308599: Hotfix does not install on my machine. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.