none
: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. RRS feed

  • Question

  • app config:

    <connectionStrings>
        <add  name="MysqlBase" connectionString="Server=alva.at.server175-han.server-routing.com; Port = 3307; Database=usrdb_; Uid=alv;password=a;SslMode = none;" providerName="Mysql.Data" />
      </connectionStrings>

    in the function:

                MySqlConnection conn = new MySqlConnection(ConfigurationManager.ConnectionStrings["MysqlBase"].ConnectionString);

    I always get Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.


    • Edited by Manus76 Sunday, August 26, 2018 4:06 PM
    Sunday, August 26, 2018 4:05 PM

All replies

  • Hi Manus76,

    Based on your description and related code, I create a simple demo, it works, could you please share a simple demo, which could reproduce the issue via OneDrive.

    Best regards,

    Zhanglong 


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, August 27, 2018 1:37 AM
    Moderator