How to fix “The ConnectionString property has not been initialized”

后端 未结 6 457
一生所求
一生所求 2020-11-27 04:58

When I start my application I get: The ConnectionString property has not been initialized.

Web.config:



        
6条回答
  •  独厮守ぢ
    2020-11-27 05:35

    The connection string is not in AppSettings.

    What you're looking for is in:

    System.Configuration.ConfigurationManager.ConnectionStrings["MyDB"]...
    

提交回复
热议问题