468,272 Members | 2,194 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

HELP! Error Loading ASPX : Object Reference not set to an instance object


When i run my aspx i get this weird error:

System.NullReferenceException: Object reference not set to an instance
of an object.
at emp.PAGTRF.InitializeComponent()
at emp.PAGTRF.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain()

On my localhost it works fine and it only fails in the production

here it is the code of the initializecomponent in the code-behind
private void InitializeComponent()

this.lkb_continuar.Click += new
this.txtContinuar.Click += new EventHandler(this.lkb_continuar_Click);
base.Load += new EventHandler(this.Page_Load);
this.ucContas1.DropConta.SelectedIndexChanged += new
this.ddlDesc.SelectedIndexChanged += new


all my controls are defined in my page with runat="server". And
this.ucContas1.DropConta is defined as follows in a user control:

public DropDownList DropConta
get {return ddlConta;}
set {ddlConta = value;}

by the way ddlconta is a control (drop down list ) defined in my user
control which works fine because it's being used in other pages.

is there anyone with any idea about this one?

thanks in advance

Pedro Correia
Nov 17 '05 #1
0 1426

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Jacek Generowicz | last post: by
9 posts views Thread by Tom | last post: by
6 posts views Thread by d.warnermurray | last post: by
4 posts views Thread by dixie | last post: by
8 posts views Thread by Mark | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.