comicrage
June 4th, 2009, 03:28 PM
Hi,
I just written a class library dll which generates a dll.config. When I added the project to another web application project as a reference, I don't see the configuration being read. I checked the bin\debug and even copied the dll.config to the unit test Out folder and still the same problem. I would think that the projectname.dll would automatically look for and read the projectname.dll.config. When I step through the code from the web app to the project method, the following statement inside the dll can read anything
FileName = ConfigurationManager.AppSettings["textFileName"];
Any help would be appreciated.
Thanks
I just written a class library dll which generates a dll.config. When I added the project to another web application project as a reference, I don't see the configuration being read. I checked the bin\debug and even copied the dll.config to the unit test Out folder and still the same problem. I would think that the projectname.dll would automatically look for and read the projectname.dll.config. When I step through the code from the web app to the project method, the following statement inside the dll can read anything
FileName = ConfigurationManager.AppSettings["textFileName"];
Any help would be appreciated.
Thanks