On the confirmation screen I get the flowing error:
"
Error processing payment. Please try again. DotNetNuke.Services.Exceptions.ModuleLoadException: Object cannot be cast from DBNull to other types. ---> System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToDecimal(IFormatProvider provider) at System.Convert.ToDecimal(Object value) at Smith.DNN.Modules.BuyNow.Confirm.ProcessAuthNetTransaction(BillingAccountInfo accountDetails, CustomerInfo customerDetails) at Smith.DNN.Modules.BuyNow.Confirm.Submit() --- End of inner exception stack trace ---"
Here is the admin --> event log:
12/3/2011 1:43:52 PM
Module Load Exception
host
My Website
ModuleId 432 ModuleDefId 116 FriendlyName ModuleControlSource DesktopModul
ModuleId: 432
ModuleDefId: 116
FriendlyName:
ModuleControlSource: DesktopModules/Smith.BuyNow/Confirm.ascx
AssemblyVersion: 6.0.1
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 61
ActiveTabName: Store
RawURL: /mitek/Store/tabid/61/ctl/Confirm/mid/432/Default.aspx
AbsoluteURL: /MiTek/Default.aspx
AbsoluteURLReferrer: http://localhost:4123/mitek/Store/tabid/61/ctl/Confirm/mid/432/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 6f29d431-b6a9-422b-8fda-aa5157cd5ece
InnerException: Object cannot be cast from DBNull to other types.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.DBNull.System.IConvertible.ToDecimal
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object cannot be cast from DBNull to other types. ---> System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToDecimal(IFormatProvider provider) at System.Convert.ToDecimal(Object value) at Smith.DNN.Modules.BuyNow.Confirm.ProcessAuthNetTransaction(BillingAccountInfo accountDetails, CustomerInfo customerDetails) at Smith.DNN.Modules.BuyNow.Confirm.Submit() --- End of inner exception stack trace ---
Source:
Server Name: NUKEY
AssemblyVersion: 6.0.1
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 61
ActiveTabName: Store
RawURL: /mitek/Store/tabid/61/ctl/ManagePaymentMethods/mid/432/Default.aspx
AbsoluteURL: /MiTek/Default.aspx
AbsoluteURLReferrer: http://localhost:4123/mitek/Store/tabid/61/ctl/ManagePaymentMethods/mid/432/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 8f9e4aa0-2f1b-40ff-a9d2-d0cd5e277d1f
InnerException: Input string was not in a correct format.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Number.StringToNumber
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Input string was not in a correct format. ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at Smith.DNN.Modules.BuyNow.ManagePaymentMethods.btnPaymentMethodSubmit_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: NUKEY