Saturday, November 10, 2012

[HatchedDesignForum] Re: Unable to complete order and check out

 


This is the error message I get when I try to check out after ordering a design. Does anyone know what it means or how to correct it so I can buy the design I want?

Server Error in '/' Application.
----------------------------------------------------------

Object cannot be cast from DBNull to other types.
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: Object cannot be cast from DBNull to other types.

Source Error:

Line 111: {
Line 112: SqlCommand cmd3 = new SqlCommand("select points from users where id=" + (string)Session["hiauserid"], conn);
Line 113: int userpoints = Convert.ToInt32(cmd3.ExecuteScalar());
Line 114: HiddenField1.Value = userpoints.ToString();
Line 115: cmd3.Dispose();


Source File: c:\domains\hatched\checkout.aspx.cs Line: 113

Stack Trace:

[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +56
System.Convert.ToInt32(Object value) +28
checkout.LoadPage() in c:\domains\hatched\checkout.aspx.cs:113
checkout.Page_Load(Object sender, EventArgs e) in c:\domains\hatched\checkout.aspx.cs:22
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (9)
Recent Activity:
WWW.HATCHEDEMBFUN.COM  The new site for redwork/colorwork designs!

SIGN UP FOR AllSorts List by sending an email to:  allsortsdesigns-subscribe@yahoogroups.com

SIGN UP FOR the HIA Special Events List to see Event photos, send an email to HIASpecialEvents-subscribe@yahoogroups.com
TO VIEW PHOTOS:   http://groups.yahoo.com/group/HIASpecialEvents/

Click here to go to the main page:  http://groups.yahoo.com/group/HatchedDesignForum/

List MODERATORS: Alice,Cheryl,Elta Kay (EK), Erica , Martha, Pat, Sue

List MODERATORS: Please contact the moderators at:
hatcheddesignforum-owner@yahoogroups.com

Hatched in Africa - http://www.hatchedinafrica.com
All Sorts -  http://www.allsortsembdesigns.com
.

__,_._,___

0 comments:

Post a Comment