G
Guest
Thanks Memnoch,
I have got round with that error and now something else has cropped up. My
guess is that its something to do with data conversion.
I am getting this error, In my database, the field LoginName is set as
Vachar type. It looks as though there is a problem reading this field. could
you please enlighting me on what I have done wrong and what i could do to
correct this error.
Thanks for you Help.
''----------------------Error-------------------------
The data value could not be converted for reasons other than sign mismatch
or data overflow. For example, the data was corrupted in the data store but
the row was still retrievable.
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.InvalidCastException: The data value could not be
converted for reasons other than sign mismatch or data overflow. For example,
the data was corrupted in the data store but the row was still retrievable.
Source Error:
Line 56: authorisedusernameList.Items.Add( dataReader.GetString( 0 ) );
Source File: c:\inetpub\wwwroot\websupportproject\login.aspx.cs Line: 56
Stack Trace:
[InvalidCastException: The data value could not be converted for reasons
other than sign mismatch or data overflow. For example, the data was
corrupted in the data store but the row was still retrievable.]
System.Data.OleDb.DBBindings.get_ValueString()
System.Data.OleDb.OleDbDataReader.GetString(Int32 ordinal)
WebsupportProject.Login.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\websupportproject\login.aspx.cs:56
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
'---------------end of error------------------------------
Thank you for your help so far.
I have got round with that error and now something else has cropped up. My
guess is that its something to do with data conversion.
I am getting this error, In my database, the field LoginName is set as
Vachar type. It looks as though there is a problem reading this field. could
you please enlighting me on what I have done wrong and what i could do to
correct this error.
Thanks for you Help.
''----------------------Error-------------------------
The data value could not be converted for reasons other than sign mismatch
or data overflow. For example, the data was corrupted in the data store but
the row was still retrievable.
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.InvalidCastException: The data value could not be
converted for reasons other than sign mismatch or data overflow. For example,
the data was corrupted in the data store but the row was still retrievable.
Source Error:
Line 56: authorisedusernameList.Items.Add( dataReader.GetString( 0 ) );
Source File: c:\inetpub\wwwroot\websupportproject\login.aspx.cs Line: 56
Stack Trace:
[InvalidCastException: The data value could not be converted for reasons
other than sign mismatch or data overflow. For example, the data was
corrupted in the data store but the row was still retrievable.]
System.Data.OleDb.DBBindings.get_ValueString()
System.Data.OleDb.OleDbDataReader.GetString(Int32 ordinal)
WebsupportProject.Login.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\websupportproject\login.aspx.cs:56
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
'---------------end of error------------------------------
Thank you for your help so far.