G
Guest
Hi,
I built a C# web application, all things are ok when i test locally. I
deploy it to a remote server. I set <customErrors mode="Off" /> in
web.config.
One of the aspx page has the problem "Object reference not set to an
instance of an object". An unhandled exception was generated during the
execution of the current web request. Information regarding the origin and
location of the exception can be identified using the exception stack trace
below.
[NullReferenceException: Object reference not set to an instance of an
object.]
GuiMingWeb.Account.buy.Page_Load(Object sender, EventArgs e) in
e:\webapplication\account.aspx.cs:89
System.Web.UI.Control.OnLoad(EventArgs e) +63
System.Web.UI.Control.LoadRecursive() +31
System.Web.UI.Page.ProcessRequestMain() +731
Since it has no build and runtime error when I test it at localhost, the
page has that error only when I see it on remote server.
I do not know how to debug it kind of error. All other aspx pages do not
have that problem.
Any suggestion?
Thanks for any help.
I built a C# web application, all things are ok when i test locally. I
deploy it to a remote server. I set <customErrors mode="Off" /> in
web.config.
One of the aspx page has the problem "Object reference not set to an
instance of an object". An unhandled exception was generated during the
execution of the current web request. Information regarding the origin and
location of the exception can be identified using the exception stack trace
below.
[NullReferenceException: Object reference not set to an instance of an
object.]
GuiMingWeb.Account.buy.Page_Load(Object sender, EventArgs e) in
e:\webapplication\account.aspx.cs:89
System.Web.UI.Control.OnLoad(EventArgs e) +63
System.Web.UI.Control.LoadRecursive() +31
System.Web.UI.Page.ProcessRequestMain() +731
Since it has no build and runtime error when I test it at localhost, the
page has that error only when I see it on remote server.
I do not know how to debug it kind of error. All other aspx pages do not
have that problem.
Any suggestion?
Thanks for any help.