In my case, I was running the self-contained bundle.exe and I was missing the appsettings.json file. I was specifying the connection string in the command, but the bundle.exe still requires the file to be there even though it is not needed.
appsettings.json