Cannot Access Web.Config file

Mar 13, 2008 at 8:54 PM
I have a VS2008 ASP.Net project and a Test project in the same solution. The NUnit tests show up in my test view and work great. The problem is that my config file doesn't seem to be visible to the tests when running under VS2008. When I use the NUnit GUI, I selected the Web.Config file as the config file by choosing Project > Edit from the NUnit GUI and setting the Configuration File Name in the General tab. There doesn't seem to be an option for this kind of thing using VS2008. I've also tried copying the Web.Config file to the test project directory and test project bin directory (and renaming the config file to the testproject name.config).

Any ideas?