In .NET solutions, we can read settings from configuration files, such as web.config or app.config. But I found a problem while using these resources. In a solution, I created a Class Library Project and an ASP.NET Project, both of them have a "something.config" file. In Class Library, it is called App.Config, and in ASP.NET, obviously, Web.config.
I created a method in a class in the Class Library Project and invoked it in ASP.NET. These methods gets some settings from app.config, but if I try to use in my Web project, the method read from web.config, in ASP.NET project, what is not desirable.
How can I do to make the method in Class Library Project read the App.Config from corresponding project, not from web project?