Input string was not in a correct format. [3.40]

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hi All,

Have recently setup ES-CO (Spanish Columbia) language, set the language as active now my store errors with the following:

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:


Line 7:          @Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
Line 8:          @Html.Action("HomepageCategories", "Catalog")
Line 9:          @Html.Action("HomepageProducts", "Product") - This line in red
Line 10:         @Html.Action("HomepageBestSellers", "Product")
Line 11:         @Html.Action("HomePageNews", "News")

Please advise why this is happening?
8 years ago
What is the value of your language resource for:  Products.PriceRangeFrom

In English it's  "From {0}".   The {0} is a placeholder for the formatted price.
8 years ago
It is set to

<Value>Desde { 0 }</Value>


Although looking down there are some like so:

<LocaleResource Name="Products.ProductHasBeenAddedToTheCart.Link">
    <Value>El producto ha sido añadido a su carrito de compras \u003ca href=\</Value>
  </LocaleResource>


Could that be the problem?
8 years ago
Remove any spaces inside the { }.  It should look like this:    Desde {0}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.