Wrox Programmer Forums
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 20th, 2010, 08:53 AM
Authorized User
Join Date: Mar 2008
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to myself.panku
Default Httpcontext.Current doesn't work with NUnit

Hi Team,

I am facing a problem which is related to NUnit Case.

I have a MVC application usng ASP.NET (SP1). I am done woth my site and now I am trying to write the Unit case for the same.

But, method defined in Test class are unable to run HttpContext.Current.Server.MapPath() . that peice of code gives me NullPointerException : object reference not set properly.
I have seen a lot in google, but couldn't find the proper solution till now.

I need you helpfull....

Thanks! in advance.

-Pankaj Bahuguna

Similar Threads
Thread Thread Starter Forum Replies Last Post
HttpRuntime vs HttpContext r_adarsh .NET Framework 1.x 1 February 19th, 2008 10:50 AM
HttpContext.Current.Cache used to store user info? flyin General .NET 11 April 6th, 2004 03:57 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.