Config Files

  • Thread starter Cantekin Guneser
  • Start date
C

Cantekin Guneser

hi
firsly, i have one projec that is clas library project (dll project). i
have config file for this project an i am using appsetting section. until
here no problem
i wantto use this dll in a web application, when i adding my dll as a
refferance , dll stars using config file of web aplication, here starts my
problem. i have copied config file of clas liblary project to inside bin
folder of web application but still dll reads web config file
i want dll reads its own config file and web app reads its own

thanks in advance
 
N

N.K

..config files are per appdomain. You can have only one config file per app domain.

IMO,You have to use web.config in this case.No seperate config file for DLL.

Regards
Nirmal
 
M

Marc Scheuner [MVP ADSI]

firsly, i have one projec that is clas library project (dll project). i
have config file for this project an i am using appsetting section. until
here no problem

The standard .NET ConfigurationSettings object will ONLY read settings
from either an app's MyApp.exe.config (ONLY .EXE.CONFIG !), or the
web.config for web apps.

If you need YourDLL.dll.config files, you'll need to roll your own. Or
use some of the existing third-party implementations for this, e.g.

http://www.codeproject.com/csharp/Custom_Config_File_Reader.asp

Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top