Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 February 23rd, 2007, 04:06 PM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Muzzy
Default HELP with error!

I have a such error:

Server Error in '/web/RABITA' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 28:
Line 29: RABITA.WebForm1 indexObj = new WebForm1();
Line 30: lbl_nick.Text = indexObj.lbl.Text;
Line 31: // Put user code to initialize the page here
Line 32: }


Source File: f:\vs_examples\web\rabita\search.aspx.cs Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   RABITA.search.Page_Load(Object sender, EventArgs e) in f:\vs_examples\web\rabita\search.aspx.cs:30
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731



CAN ENYONE HELP ME WITH SOLVING THE PROBLEM?

 
Old February 23rd, 2007, 04:19 PM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Muzzy
Default

These are main points of error, maybe it will be useful for helping me...

Object reference not set to an instance of an object.

Source Error:


Line 28:
Line 29: RABITA.WebForm1 indexObj = new WebForm1();
Line 30: lbl_nick.Text = indexObj.lbl.Text;
Line 31: // Put user code to initialize the page here
Line 32: }


Error on Line: 30


 
Old February 23rd, 2007, 04:46 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Do you have the label on the front page?

<asp:label ID="lbl_nick" runat="server" />

 
Old February 23rd, 2007, 04:50 PM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Muzzy
Default

yes, sure!

 
Old February 25th, 2007, 04:40 PM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Muzzy
Default

Thanks! I've solved my problem. Topic is closed!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





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