Re: Weird issue with System.NullReferenceException

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ciaran (ciaran_at_theodonnells.plus.com)
Date: 01/01/05


Date: Sat, 1 Jan 2005 20:42:10 -0000

I think it would be helpful if you posted the code behind up.

Ciaran

"Shannon" <shannon.albeke@state.co.us> wrote in message
news:1104539835.316353.53060@c13g2000cwb.googlegroups.com...
>I am having a very strange issue with my asp.net application. I have
> created a datagrid which dynamically gets populated from a person
> choosing a value from a dropdown list and entering a quantity into a
> text box (a simple version of a shopping cart). When I run/debug the
> web page using the localhost in the page URL
> (http://localhost/mypage.aspx), the datagrid updates properly when a
> command button is clicked and all is well. However, when I run the web
> page using the machinename (http://mymachine/mypage.aspx) I recieve the
> error "Object Reference not Set...System.NullReferenceException" when I
> click the command button to update the datagrid with new values. Does
> anyone have a solution as to why it works as localhost but does not as
> machinename? And does anyone have a solution? Thanks in advance.
> Shannon
>


Quantcast