Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
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 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 March 5th, 2007, 04:50 AM
Registered User
 
Join Date: Feb 2006
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







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





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