Reading a config file from a .DLL

  • Thread starter Thread starter Ray Stevens
  • Start date Start date
R

Ray Stevens

I have a dotnet wrapper service running on a service that calls one of our
custome components. I would like to read the appsettings section from a
config file, but because this is a class file reather than an .exe,
app.config is not configured as [appname].exe.config when compiled.

What is the best way to read the app.config file from the .dll?
 
The configuration for your DLL goes into the app.config file for the exe
itself.


--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top