Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 5th, 2007, 04:50 AM
Registered User
Join Date: Feb 2006
Location: Calcutta, West Bengal, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default System.NullReferenceException

can any tell me what is the error?

VisitBritain.UTSv_ProductTypeAvailRQ x=null;
            x= new VisitBritain.UTSv_ProductTypeAvailRQ ();

            x.AvailRequestSegments [0].TPA_Extensions.SearchCriteria.ProviderID_List[0]="11163";
            x.AvailRequestSegments [0].StayDateRange.StartDateWindow.EarliestDate="15-september-2006";
            x.AvailRequestSegments [0].StayDateRange.EndDateWindow.EarliestDate="17-september-2006";

            x.AvailRequestSegments [0].ConsumerCandidates[0].ConsumerCounts.ConsumerCount[0].Count="2";
            x.AvailRequestSegments [0].ConsumerCandidates[0].ConsumerCounts.ConsumerCount[0].Count="2";

stack trace

NullReferenceException: Object reference not set to an instance of an object.]
   TestHcgWebService.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\testhcgwebservice\webform1.aspx .cs:26
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
System.NullReferenceException JayLou BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 April 6th, 2007 12:55 PM
System.NullReferenceException: Object reference no HelpWanted ASP.NET 1.0 and 1.1 Basics 11 October 24th, 2006 04:50 PM
System.NullReferenceException lwheless BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 24th, 2006 05:47 AM
System.NullReferenceException on pg 202 example egivler BOOK: Beginning ASP.NET 1.0 2 July 7th, 2004 09:04 AM
System.NullReferenceException: Object reference no nidy_online VS.NET 2002/2003 2 June 9th, 2004 09:17 PM

All times are GMT -4. The time now is 07:40 AM.

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