HomeHome Product Discus... Product Discus...SmithCartSmithCartResolved: 6.	Input string was not in a correct formatResolved: 6. Input string was not in a correct format
Previous
 
Next
New Post
5/27/2010 10:02 AM
 

In both 2.88 and 2.90, if you set up a product, in the following area:

User Roles Setup - Roles to add after successful payment

and you checkmark one of the roles, but do NOT provide a Role Expiration value, you will get an error after the final Submit Order button in the ordering process:

1. Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12630485
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +224
DotNetNuke.HttpModules.Membership.MembershipModule.OnAuthenticateRequest(Object s, EventArgs e) +3310
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266

The cure is to supply a number, or don't checkmark a role.

 
New Post
5/27/2010 12:56 PM
 

The role expiration for a product is suppose to be optional I will test this out and let you know what I find. Thanks for reporting it!

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/27/2010 7:25 PM
 

I tested this with both manual gateway and authorize.net and didnt see the error. Can you post a screen shot of your cart settings product setup so I can replicate your exact setup. You might also want to try downloading and installing the latest version 2.9 from the downloads page and install it on a new dnn install to see if the issue is related to your upgrade.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/23/2010 4:06 PM
 

I'm having the same problem using v2.76...

Product Setup
Category: *
Sub Category:
Maunfacturer: *
Product Sku: *
Product Name: *
Upload Primary Photo:
Primary Product Photo:
Unit Cost: *
Member Price:
Weight (Ounces): *
Quantity On Hand: *
Summary:
Description:
Tab Name:


Sort Order:
Tax Exempt:
Require Login:
Share products
between catalogs:
Featured:
Show custom fields
on product detail page:
Deactivated:
Affiliate URL:
Coupon Setup
Require Coupon:
Exclude Coupons:
Items in SKU:
Downloadable Product Setup

URL GUID:
Auto Generate GUID:
Encrypt URL:
User Roles Setup - Roles to add after successful payment
Role Name Add Role Role Expiration (Days)
Administrators
Authority of the Believer I - Online
Authority of the Believer II - Online
Avoiding Deception - Online
Bible Covenants - Online
Charismatic Foundations - Online
Contributor
Developing the Leader Within You - Online
Divine Healing - Online
Editor
Evangelism and Outreach - Online
Fruit of the Spirit - Online
Gifts of the Spirit - Online
Growing Up Spiritually - Online
How to be Led by the Spirit - Online
Laws of Leadership - Online
Marriage and Family - Online
New Creation Realities - Online
New Testament Survey I - Online
New Testament Survey II - Online
Old Testament Survey I - Online
Old Testament Survey II - Online
Principles of Ministry - Online
Principles of Praise and Worship - Online
Principles of Prayer - Online
Principles of Revival - Online
Proverbs - Online
Registered Users
Renewing the Mind - Online
Righteousness - Online
Spiritual Discernment - Online
Subscribers
The Character of God - Online
The Life of Christ - Online
The Principle of Invincibility - Online
The Spirit of Faith - Online
World Missions - Online
Bundled Product Setup
Bundled Product(s):

Use Primary Product Price & Weight:
Recurring Billing Options
Recurring Billing flag (Applicable for only Authorize.net Gateway)
Subscription Interval :
Total Occurences : ("9999" = Infinite recurring billing)
 
New Post
6/23/2010 4:08 PM
 

How do I get updates? I see on the forum there is a version 2.93 and I think I should get updates for a few months.

Thanks,
Dean

 
New Post
6/23/2010 4:14 PM
 

Actually the latest version of the cart is 2.96 we have been busy :) If you email support@smithcart.com with your userid and purchase receipt we will give you access to the cart downloads page so you can get the latest version.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
8/28/2010 3:49 PM
 

This is now fixed and you can check all the roles you want and add the expiration days to any of the roles. This fix is availible in cart v3.05. This was a tough bug to figure out. It turned out the error started happening with in dnn 5.2 and above something was changed in dnn with encrypted cookies or forms authentication. For any other dnn module programmers out there here is what fixed it.

We changed the following code:

FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, Context.User.Identity.Name, DateTime.Now, DateTime.Now.AddHours(1), false, strRoleNames);

// Encrypt the ticket
string cookieStr = FormsAuthentication.Encrypt(ticket);

// Send the cookie to the client
Response.Cookies["portalroles"].Value = cookieStr;
Response.Cookies["portalroles"].Path = "/";

To this:

//Clear the user's cached/stored role membership, will reload on next page cycle
PortalSecurity.ClearRoles();
DataCache.ClearUserCache(PortalId, UserInfo.Username);



At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartResolved: 6.	Input string was not in a correct formatResolved: 6. Input string was not in a correct format