Getting this error on the front-end on upgrade from 6.0.5 to 6.1.3
Input string was not in a correct format
Server Error in '/' Application.
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.
Dan, I know you came up with a workaround, but instead of creating a new post with the same issue I figured I just tag along here.
So I have the same issue and here's my problem.
I have a macro where, among other things, a user selects an image (it's the only reason to choose the macro) and can optionally choose another image as a target. Both are mediaCurrent parameters where one could be empty. When both parameters have a value it's not an issue but when one is blank IIS throws the OP's error.
Not sure how to get around this. Is it possible to set a default value for a parameter to bypass the error? Or is there another way to have a user select a media node?
Error on upgrade from 6.0.5 to 6.1.3
Getting this error on the front-end on upgrade from 6.0.5 to 6.1.3
Input string was not in a correct format
Server Error in '/' Application.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044
Solved:
We had a macro with a parameter of type mediaCurrent.
In the XSLT the macro referenced the parameter as /macro/imageID/*/@id
If imageID was empty this threw an errow for some reason (never has done before).
Solution was to change the parameter type to number and just pass through the id in the macro: /macro/imageID
Dan, I know you came up with a workaround, but instead of creating a new post with the same issue I figured I just tag along here.
So I have the same issue and here's my problem.
I have a macro where, among other things, a user selects an image (it's the only reason to choose the macro) and can optionally choose another image as a target. Both are mediaCurrent parameters where one could be empty. When both parameters have a value it's not an issue but when one is blank IIS throws the OP's error.
Not sure how to get around this. Is it possible to set a default value for a parameter to bypass the error? Or is there another way to have a user select a media node?
-Wm
I don't know I'm afraid as my Macro wasn't being used in the content editor so worked fine with just a number.
My only suggestion would be to convert the macro to Razor maybe?
Thanks Dave, I may give that a try.
-Wm
is working on a reply...