Dll Configuration file (dllName.dll.config)?

Up vote 0 down vote favorite share g+ share fb share tw.

I am developing a plugin for a . NET 4 application and I want to add a config file to the dll as I don't want to put the configuration in the main config file. I have added the app.

Config t the project and it is correctly compile and dllName.dll. Config generated. Here is my configuration file: Now I have 1 problems: If I copy the file in the ExtraPlugins directory of my main application, NewApp.UI.

Dll cannot be found when calling GetSection("MyTabsConfig"). I think it is looking in the main application folder. Thanks.

C# .net dll configuration app-config link|improve this question asked Dec 16 '11 at 12:29Simone12.

Possible duplicate stackoverflow.com/questions/594298/c-sha... – oleksii Dec 16 '11 at 13:23.

ConfigurationSection section = ConfigurationManager. OpenExeConfiguration("myConfig. Config").

GetSection("mySection").

Well yes, I do something like that, ConfigurationManager. OpenExeConfiguration gets the configuration file. I get an exception when I call GetSection on it: "Could not load file or assembly 'NewApp.

UI' or one of its dependencies. The system cannot find the file specified. ":"NewApp.

UI"". I think it is looking for this dll in the main folder whle the librariy and its config are in the "ExtraPlugins" directory. – Simone Dec 19 '11 at 10:19 Then I would try a relative path if it's know to you.

I.e. OpenExeConfiguration("../ExtraPlugins/myConfig. Config") – Bartosz Wójtowicz Dec 19 '11 at 10:30.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions