Value cannot be null. Parameter name: connectionString appsettings.json in starter

前端 未结 14 1873
南旧
南旧 2020-12-16 10:07

I am trying to write my connection string in my appsettings.json file and bring it into my startup file but I keep getting a Value cannot be null. Parameter name: connection

14条回答
  •  北海茫月
    2020-12-16 10:39

    I had got similar error.My "appsettings.json" file was not loading because the properties of the file was Copy to Output Directory -> Do not Copy. I set that to Copy always save and rebuild.It worked.

提交回复
热议问题