Updating cdo dll
You'll need to cache as much as possible, keeping the instance around ONLY as long as it takes to load or to save, opening immediately before and disposing immediately after.
And finally, you'll need a lock mechanism to protect the file while it's being edited by one of the apps that use the library.
If you're using you dll from another application then the Connection String shall be in the app.settings of the application. This depends on how your DLL is structured and what method will fit your DLL best. Location ".config"; Configuration lib Config = Configuration Manager. Value); Seems like this config files are really confusing to clarify as their behaviour changes from the dev environment to deployment.
I know this is late to the party, however I thought I would share the solution I use for DLL's. Exe Configuration File Map map = new Exe Configuration File Map(); map. Open Mapped Exe Configuration(map, Configuration User Level. Get Section("app Settings") as App Settings Section); Console. Apparently a DLL can have its own config file, but once you copy and paste the dll (together with their config file) elsewhere, the whole thing stopped working.
This article also provides information about the Exchange Calendar Update tool, which enables administrators to automate the updating of user calendars. Among other changes, this act modifies the start and end dates for DST in the following geographic regions: When this law goes into effect on March 11, 2007, DST will start three weeks earlier and will end one week later than what has traditionally occurred. Previously, a test version of this update was released under this same article number.But if not, there is something you should keep in mind.If you use a single global config file for your DLL, regardless of the app that is referencing it, you need to worry about access conflicts.Im trying to add an app.config file to my DLL, but all attempts have failed. There is a big difference between how a DLL is used and how an application is used.
According to Music Genesis in 'Putting configuration information in a DLL' this should not be a problem. The following code should return my Connection String from my DLL: It is not trivial to create a . You are unlikely to have multiple copies of an application installed on the same machine for the same user.Background: I want to have my to have its own config file for database and DAL settings. My requirements/point of views were: I came up with modifying the file and implemented a method that opens the Class Library1config and reads the section information in a private field.I also need the app.config for Enterprise Library and its own configurations. What I did not wanted to do is pass-through every property/setting from the app to my DAL layer! After that, I've overriden "this[string property Name]" so the generated Settings. NET DLL that wants to store external data points that control how it works or where it goes, etc.You might want to check out the Assembly Settings class which seems to make assembly config files possible.