locked
Unknown Database Connector Error RRS feed

  • Question

  • Hello,

    I get the Unknown Database Connector Error error when I try to set the data source (which is a dataset) to the report. And I'm not sure why because I did the same in the other projects and it's working properly. If you have any ideas please help. Thank you

    Friday, October 21, 2011 9:12 AM

Answers

  • Thank you for your answer. I've fixed the problem, I just need to put those lines

    <startup useLegacyV2RuntimeActivationPolicy="true">

        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

      </startup>

    into the App.xml file for the application that hosts my dll.
    Thank you very much again.
    Have a nice day.

    • Marked as answer by Annabella Luo Thursday, October 27, 2011 9:22 AM
    Thursday, October 27, 2011 7:31 AM

All replies

  • Hello,

    I get the Unknown Database Connector Error error when I try to set the data source (which is a dataset) to the report. And I'm not sure why because I did the same in the other projects and it's working properly. If you have any ideas please help. Thank you

    I didn't mention that I am using Crystal Report XI.
    Friday, October 21, 2011 9:25 AM
  • Hello,

    I get the Unknown Database Connector Error error when I try to set the data source (which is a dataset) to the report. And I'm not sure why because I did the same in the other projects and it's working properly. If you have any ideas please help. Thank you

    I didn't mention that I am using Crystal Report XI.
    And I also use the code in a Class Library (dll). Does Crystal Reports work in a Class Library?
    Friday, October 21, 2011 10:55 AM
  • Hi Navigator2011,

    Thank you for your post.

    According to your description, I understand you used Crystal Report in your WPF application and get the Unknown Database Connector Error when you try to set the data source to the report.

    You mentioned that you set the data source to the report in a Class Library. I think it is not a good idea because a WPF dll file can be used in different WPF application which used totally different database. A Class Library should not complete that things.

    Please check out the following link about Class Library for your reference:

    http://msdn.microsoft.com/en-us/library/d11h6832(v=vs.71).aspx

    And please pay attention to the first paragraph.

    If you have any additional questions, please feel free to let me know.

    Have a nice day.


    Annabella Luo [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, October 24, 2011 2:12 AM
  • Thank you for your answer. I've fixed the problem, I just need to put those lines

    <startup useLegacyV2RuntimeActivationPolicy="true">

        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

      </startup>

    into the App.xml file for the application that hosts my dll.
    Thank you very much again.
    Have a nice day.

    • Marked as answer by Annabella Luo Thursday, October 27, 2011 9:22 AM
    Thursday, October 27, 2011 7:31 AM
  • Thank you for your sharing, Navigator.
    Annabella Luo [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, October 27, 2011 9:22 AM
  • Please check your database connection. It may be closed..... and you don't know...

    e.g.  you re-open your database connection in Form_Unload Event and same time report is trying to get data.

    • Proposed as answer by Navdip Raj Tuesday, November 15, 2011 12:23 PM
    Tuesday, November 15, 2011 12:23 PM