I receive FormatException and I don’t know why.
System.FormatException was unhandled by user code
Message=Input string was not in a correct format.
Source=mscorlib
StackTrace:
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Convert.ToDouble(String value)
line of code:
DELTA_BUY = Convert.ToDouble(parameters["DELTA_BUY"]);
value (from debug window):
parameters["DELTA_BUY"] "0.0016" string
upd works fine on one execution path but fails on another execution pass (when came from WCF). reproducable on double, works fine with strings. probably format/nationalization issue?
Is your machine perhaps set to a Culture where “0.0016” is not a valid number?
Try