Re: Reading web.config file
"Charlie Poole" <[email protected]> Wed, 27 Aug 2008 08:12:17 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <006601c90857$4e13d7b0$6401a8c0@ferrari> |
This is a multi-part message in MIME format. --===============1420225758== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0067_01C9081C.A1B4FFB0" This is a multi-part message in MIME format. ------=_NextPart_000_0067_01C9081C.A1B4FFB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: [email protected] [mailto:[email protected]] On Behalf Of Nikul Gavan Sent: Wednesday, August 27, 2008 7:45 AM To: [email protected] 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 ------=_NextPart_000_0067_01C9081C.A1B4FFB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <STYLE type=3Dtext/css>DIV { MARGIN: 0px } </STYLE> <META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D531280915-27082008><FONT face=3DArial color=3D#0000ff = size=3D2>You=20 need to create a config file for your tests, since web.config is only = relevant=20 when running on the web server. See <A=20 href=3D"http://nunit.org/?p=3DconfigFiles&r=3D2.4.8">http://nunit.org= /?p=3DconfigFiles&r=3D2.4.8</A></FONT></SPAN></DIV> <DIV><SPAN class=3D531280915-27082008><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D531280915-27082008><FONT face=3DArial color=3D#0000ff = size=3D2>Charlie</FONT></SPAN></DIV><BR> <BLOCKQUOTE=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B>=20 [email protected]=20 [mailto:[email protected]] <B>On Behalf Of = </B>Nikul Gavan<BR><B>Sent:</B> Wednesday, August 27, 2008 7:45=20 AM<BR><B>To:</B> = [email protected]<BR><B>Subject:</B>=20 [nunit-developer] Reading web.config file<BR></FONT><BR></DIV> <DIV></DIV> <DIV=20 style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new = york,times,serif">I'm=20 trying to unit test a web service I created and I'm having trouble = reading the=20 values in the web.config file...any=20 = suggestions?<BR><BR>Thanks,<BR>Nik<BR></DIV><BR></BLOCKQUOTE></BODY></HTM= L> ------=_NextPart_000_0067_01C9081C.A1B4FFB0-- --===============1420225758== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ --===============1420225758== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ nunit-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-developer --===============1420225758==--