Keep getting "Object reference not set to an instance of an object."
<p>On our development environment system works fine but on Live system sometimes buttonClick action generates below error. If i press back 1-2 times it works without generating error.</p>

<p>On the live system error, it still shows my local path. Can this be the issue?
Thanks for your help</p>

<p><code>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.</code></p>

<p>Exception Details: </p>

<p><code>System.NullReferenceException: Object reference not set to an instance of an object.</code></p>

<p>Source Error: </p>

<p><code>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.</code></p>

<p>Stack Trace: </p>

<p><code>[NullReferenceException: Object reference not set to an instance of an object.]
   WebApplication4.orderConfirmation.SubmitButton_Click(Object sender, EventArgs e) in C:\Documents and Settings\Desktop\Purchase\WebApplication4\WebApplication4\orderConfirmation.aspx.cs:341
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +153
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3690</code></p>
