Object reference not set to an instance of an object. - App.config

后端 未结 5 2008
南笙
南笙 2021-01-03 01:05

I receiving the error and in the local window I am seeing for both conSettings and connectionString value of null. I am right to say ConfigurationManager is null and I need

5条回答
  •  失恋的感觉
    2021-01-03 02:05

    I too faced the same problem even after multiple scrutinizing the app.config files and my code for error, but i didn't found any errors in my code. Eventually i found a silly mistake that my compiler had by default taken the application configuration file name as 'app1.config', and when i changed it to 'app.config' every thing just worked fine for me.

    Hope it will help.

提交回复
热议问题