I have a C# cmdlet(1) that uses "ConfigurationManager.AppSettings" to get database connection strings necessary for some stored procedures used in the cmdlet(1). If another application instantiates an instance of the cmdlet(1) class object, then calls a method on the class that use a stored procedure an error is thrown because the other application/project(2)'s app.config does not have the same app.config settings.
I think application(2)'s config should be updated with the same settings needed basically copying the connection string from the cmdlet(1).
My question is whether the approach is typical and best practice or should the cmdlet(1) be responsible for all calls that depend on its own app.config settings.