Jeg får en fejlkode, når jeg prøver at logge ind på det gamle betwatcher. Linje 180 er rød, hvis det betyder noget:
"Server Error in '/' Application.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.
Line 178: string getcurrate = "SELECT rate FROM currency2 WHERE date=" + insDat + " AND currency=" + cur_id; Line 179: OdbcCommand getcurrateCom = new OdbcCommand(getcurrate, conn); Line 180: string cur_rate = getcurrateCom.ExecuteScalar().ToString().Replace(',', '.'); Line 181: Line 182: Source File: d:\web\localuser\betwatcher.com\public_html_new\overview.aspx.cs Line: 180
"Server Error in '/' Application.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 178: string getcurrate = "SELECT rate FROM currency2 WHERE date=" + insDat + " AND currency=" + cur_id;
Line 179: OdbcCommand getcurrateCom = new OdbcCommand(getcurrate, conn);
Line 180: string cur_rate = getcurrateCom.ExecuteScalar().ToString().Replace(',', '.');
Line 181:
Line 182:
Source File: d:\web\localuser\betwatcher.com\public_html_new\overview.aspx.cs Line: 180
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
overview.Page_Load(Object sender, EventArgs e) in d:\web\localuser\betwatcher.com\public_html_new\overview.aspx.cs:180
System.Web.Util.CalliEventHand…(Object sender, EventArgs e) +52
System.Web.UI.Control.OnLoad(EventArgs e) +97
System.Web.UI.Control.LoadRecu…() +61
System.Web.UI.Page.ProcessRequ…(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693"