Walaa wrote:
please post the stack trace.
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 92: // if (adapter.GetScalar(SubsFields.Update, null, AggregateFunction.None, filter) != null)
Line 93: // {
Line 94: value = (bool)adapter.GetScalar(SubsFields.Update, null, AggregateFunction.None, filter);
Line 95: adapter.Dispose();
Line 96: // }
Source File: C:\SubsTrans.cs Line: 94
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
SubscriptionBL.SubsTrans.CheckRecords(String AccountNo, Int32 Publication) in C:\SubsTrans.cs:94
WebGUIInterface.JournalEntry.btnUpdate_Click(Object sender, EventArgs e) in C:\JournalEntry.aspx.cs:143
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102