Solved

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

Posted on 2004-08-19
3
2,513 Views
Last Modified: 2012-06-27
Server Error in '/dotNetAlumni' 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:     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line 29:         'Put user code to initialize the page here
Line 30:         lblTitle.InnerHtml = Application("Institution") & " Alumni Portal"
Line 31:         lblInstitution.Text = Application("Institution")
Line 32:
 

Source File: c:\inetpub\wwwroot\dotNetAlumni\default.aspx.vb    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   dotNetAlumni._default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\dotNetAlumni\default.aspx.vb:30
   System.Web.UI.Control.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive()
   System.Web.UI.Page.ProcessRequestMain()

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
0
Comment
Question by:smetterd
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
Sandeepk1999 earned 500 total points
Comment Utility
Can you post the source code?

Looks like lblTitle is a HTML object and not a server object.

0
 
LVL 2

Author Comment

by:smetterd
Comment Utility
Added runat="server" on that control and voila. Thanks Sandeepk
0
 
LVL 2

Author Comment

by:smetterd
Comment Utility
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now