Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unhandled Exception: FormatException

 
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support
View previous topic :: View next topic  
Author Message
Basspassion



Joined: 03 Apr 2007
Posts: 11
Location: Sweden

PostPosted: Sun Apr 08, 2007 8:56 pm    Post subject: Unhandled Exception: FormatException Reply with quote

Hi.

I am trying to use the IPN.NET, but get this error:

Code:
<?xml version="1.0" encoding="utf-16"?>
<Payment>
  <Transaction>
    <mc_gross>9.95</mc_gross>
    <address_status>confirmed</address_status>
    <payer_id>*******</payer_id>
    <tax>0.00</tax>
    <address_street>My street</address_street>
    <payment_date>13:50:18 Apr 08, 2007 PDT</payment_date>
    <payment_status>Completed</payment_status>
    <charset>windows-1252</charset>
    <address_zip>12345</address_zip>
    <first_name>Joe</first_name>
    <mc_fee>0.69</mc_fee>
    <address_country_code>US</address_country_code>
    <address_name>Joe Shopper</address_name>
    <notify_version>2.1</notify_version>
    <custom />
    <payer_status>unverified</payer_status>
    <business>sales@bassictech.com</business>
    <address_country>United States</address_country>
    <address_city>California</address_city>
    <quantity>1</quantity>
    <verify_sign>*******</verify_sign>
    <payer_email>*******</payer_email>
    <txn_id>*******</txn_id>
    <payment_type>instant</payment_type>
    <last_name>Shopper</last_name>
    <address_state>AZ</address_state>
    <receiver_email>sales@bassictech.com</receiver_email>
    <payment_fee>0.69</payment_fee>
    <receiver_id>*******</receiver_id>
    <txn_type>web_accept</txn_type>
    <item_name>Auto Reply Robot Express Edition</item_name>
    <mc_currency>USD</mc_currency>
    <item_number>BTRobotExpressInline</item_number>
    <residence_country>US</residence_country>
    <test_ipn>1</test_ipn>
    <payment_gross>9.95</payment_gross>
    <shipping>0.00</shipping>
  </Transaction>
  <Error>Unhandled Exception: FormatException
Message: Input string was not in a correct format.
Stack Trace:
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Decimal.Parse(String s)
   at IpnData.get_tax()
   at _Default.CheckTotalCost(Decimal cost)
   at _Default.ProcessSinglePurchaseItem()
   at _Default.ProcessPayment()
   at _Default.Page_Load(Object sender, EventArgs e)</Error>
</Payment>
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Apr 09, 2007 2:47 am    Post subject: Reply with quote

Thanks for reporting the issue. We have done some initial investigation and confirmed that there is a bug relating to parsing the values when the regional settings for your server are set to a culture that uses a comma separator for decimal values.

We will release a fix for this as soon as possible (later today or tomorrow). In the meantime you may be able to work around the problem by setting your machine culture to use a decimal point.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Basspassion



Joined: 03 Apr 2007
Posts: 11
Location: Sweden

PostPosted: Mon Apr 09, 2007 9:31 am    Post subject: Reply with quote

Ok, looking forward to the update.
I cannot change my server's locale, since its on my web hosting company.

However, luckily, since the source code is included, I could hotfix it.

/M
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Apr 09, 2007 10:52 am    Post subject: Reply with quote

We have now released Version 1.0.5 that addresses this issue. See the announcement in these forums. Note that we have also released a new version of ILS that addresses related locale issues when importing sales data.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group