Config Setting Scope

  • Thread starter Thread starter Vai2000
  • Start date Start date
V

Vai2000

Hi All, I have a small driver console app which calls an assembly (static
referencing). This assembly uses a configuration file for initializing
certain values..Surprisingly when my driver app calls this assembly and I
step into it I see that the configuration values are returning null....
The config values for this assembly resides in the same folder where the DLL
is..

Any clue?

TIA
 
There is no notion of an "assembly configuration file". Any assemblies used
by the console app should use the app's configuration settings as long as
they are loaded to the same application domain (happens by default).
Therefore, specify all the required settings in the application
configuration file for the driver console app.
 
Well forgot to mention you, the target assembly which I am calling is an
ASPX Assembly...which sits in the INET Folder and used by an ASPX App. The
config I was referring to is web.config.




Dmytro Lapshyn said:
There is no notion of an "assembly configuration file". Any assemblies used
by the console app should use the app's configuration settings as long as
they are loaded to the same application domain (happens by default).
Therefore, specify all the required settings in the application
configuration file for the driver console app.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


Vai2000 said:
Hi All, I have a small driver console app which calls an assembly (static
referencing). This assembly uses a configuration file for initializing
certain values..Surprisingly when my driver app calls this assembly and I
step into it I see that the configuration values are returning null....
The config values for this assembly resides in the same folder where the
DLL
is..

Any clue?

TIA
 
Back
Top