How to get configuration file's path
-
Hi, I created a class library to do some logging and this class library need a configuraiton file to do some initialization work. I set the configuraiton file's build action to "Content". Then I add reference to this class library from a asp.net application project. After build, the class lirary and the configuration file were put the output folder "bin". As I begin to get the configuration files address in running, there are some errors occur because I ca't correctly locate the configuration file's address. Please help: how could I get the configuration file's path? thanks,
-
Hi, I created a class library to do some logging and this class library need a configuraiton file to do some initialization work. I set the configuraiton file's build action to "Content". Then I add reference to this class library from a asp.net application project. After build, the class lirary and the configuration file were put the output folder "bin". As I begin to get the configuration files address in running, there are some errors occur because I ca't correctly locate the configuration file's address. Please help: how could I get the configuration file's path? thanks,