General

You are currently browsing the articles from COLE Blog Network dot com matching the category General.

Configuring IIS Extension Mappings with NAnt

NAnt is a build tool that may be employed to automatically build your ASP.NET project, run unit tests against it using NUnit, deploy the code to a staging server and run webpage “smoke tests” using NUnitAsp.  (If you’re not familiar with NAnt, It’s often used in conjunction with CC.NET to establish your Continuous Integration environment.)  The NUnitAsp smoke tests simply perform HTTP get requests to make sure that localhost and/or deployed pages aren’t blatantly breaking.  In my opinion, using NUnitAsp beyond creating an authentication session and running basic smoke tests causes a lot of unnecessary test-code maintenance.


When using NAnt, a typical objective is to automate the entire get/build/test/deploy/test-deployment process with a relatively clean deployment server.  This ensures that configuration nuances aren’t being “assumed to already be in place.”  Furthermore, by having your NAnt script perform as much configuration as possible, the build script acts as highly accurate and self-maintaining deployment documentation.  One particular configuration nuance when setting up Castle MonoRail is to add the “*.rails” application extension mapping to IIS.  This configuration must be in place to use NUnitAsp against your NAnt-deployed application.  Although not trivial, configuring IIS with this application mapping can also be automated via NAnt.


After a bit of searching, I found that the developers of Selenium have figured this one out within http://svn.openqa.org/fisheye/rdiff/selenium?csid=261&u&N with a bit of C# scripting.  The attached file, CreateIisAppMapping.build.xml, shows how NAnt can be used in conjunction with a call to NUnit to:  create the IIS virtual directory, remove/add the “*.rails” application mapping, modify the test project’s config file to point to the configured server, and run the unit tests - which presumably contain your NUnitAsp unit tests - against the application.  The same testing technique can be used after the code has been deployed to make sure the deployed pages are working.


For further information on setting up your CI environment with NAnt and CC.NET, I recommend reading Expert .NET Delivery by Marc Holmes.


Billy McCafferty



kick it on DotNetKicks.com

Written by on July 14th, 2007 with no comments.
Read more articles on General.

Mail Bag

Damien Cox answers your Maple Leafs questions in his mail bag. Damien will be taking some time off and The Spin will return August 6th. The Thursday mail bag will return in September, in time to set the table at…

Written by on July 12th, 2007 with no comments.
Read more articles on General.

Officer in court about alleged contact with teen

A West Milton police officer charged with misdemeanor contributing to the delinquency of a minor filed a written plea of not guilty prior to a hearing Wednesday in Miami County Juvenile Court.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

Jungle Jim’s john a gem

Jungle Jim’s owner Jim Bonaminio is flush with pride that the bathroom in his international grocery has been selected one of five finalists in “America’s Best Restroom” contest. But he’s not ready to sit on his laurels.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

Reports: Gee to return as OSU’s president

Ohio House Speaker Jon Husted on Wednesday hailed the news that E. Gordon Gee will return to Ohio State University as its next president.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

Big plans made to honor Wright brothers’ legacy

Buoyed by a warm reception at the Paris International Air Show last month, boosters of Dayton’s aviation heritage plan to promote Orville and Wilbur Wright’s legacy in Europe next year and in 2009.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

Mann pleads not guilty in case where wrong man served time

Prison inmate Earl Mann appeared on closed circuit TV in Summit County Common Pleas Court on Wednesday morning and entered not guilty pleas to charges in the 1998 slaying and rape of Judith Johnson and rape of Johnson’s 6-year-old granddaughter.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

Poll: Slumping economy could force Ohioans to leave

COLUMBUS — Nearly three out of 10 Ohio voters say that the state’s slumping economy could force someone in their family to leave the state within the next year, according to a Quinnipiac University poll released on Wednesday.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

Man killed when van hits two utility poles identified

Carl Brian Trent, 36, was killed Wednesday morning when a van he was riding in left the roadway, hit a utility pole, flipped and hit a second pole.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

Calls pour in for tax break application

Officials at the Montgomery County Auditor’s office say they have been flooded with requests for applications for the state’s new homestead tax break.

Written by on July 11th, 2007 with no comments.
Read more articles on General.

« Older articles

No newer articles