Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I read app.config from within the project, the app.config section is found.

But when I call on this functionality from another project (in another namespace obviously) eg using nunit, the section is not found.

What am I am missing her ?

Regards

Guttorm Haaversen
Kristiansand
Norway
Posted

1 solution

No wonder, because this is a different process -- different entry assembly; app.config is created and used per application.
(Name spaces don't matter, by the way.)
 
Share this answer
 
v2
Comments
Nish Nishant 18-Jan-11 17:30pm    
Proposed as answer.
Voted 5.
fjdiewornncalwe 18-Jan-11 23:07pm    
Dead on. As an addition, any relevant configuration should be added to the config for the nunit test project in order to be accessible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900