I have a config file that I need to load as part of the execution of a dll I am writing.
The problem I am having is that the place I put the dll and config file is n
In my case (dealing with my assemblies loaded [as file] into Outlook):
typeof(OneOfMyTypes).Assembly.CodeBase
Note the use of CodeBase (not Location) on the Assembly. Others have pointed out alternative methods of locating the assembly.
CodeBase
Location
Assembly