Discussion:
Reading web.config file
Nikul Gavan
2008-08-27 14:44:40 UTC
Permalink
I'm trying to unit test a web service I created and I'm having trouble reading the values in the web.config file...any suggestions?

Thanks,
Nik
Charlie Poole
2008-08-27 15:12:17 UTC
Permalink
You need to create a config file for your tests, since web.config is only
relevant when running on the web server. See http://nunit.org/?p=configFiles
<http://nunit.org/?p=configFiles&r=2.4.8> &r=2.4.8

Charlie


_____

From: nunit-developer-***@lists.sourceforge.net
[mailto:nunit-developer-***@lists.sourceforge.net] On Behalf Of Nikul
Gavan
Sent: Wednesday, August 27, 2008 7:45 AM
To: nunit-***@lists.sourceforge.net
Subject: [nunit-developer] Reading web.config file


I'm trying to unit test a web service I created and I'm having trouble
reading the values in the web.config file...any suggestions?

Thanks,
Nik

Continue reading on narkive:
Loading...