Azure api result different from my location result
I created a C # API in azure where it returns me an array passing the following params:
tccapiwebservice.azurewebsites.net/api/Algoritimos/PostAlgoritimo?_funcobjetiva=5,00;3,50&_maxmin=true&_restricoes=1,5;1.1;0.0;1&_sinalres=2;2;2&_valoruni=400;150;300&_tipo=true
This version is the same as this running on my local, only when I pass the same parameters to the local API it brings me different results, follows the same:
azure API (unexpected result)
I don't know why they're giving different results.
0
1 answers
Check the configuration of culture
because in azure the decimal separator is the period (.
) and place is comma (,
).
As in the parameter you pass values with separators, there may be an error when dealing with these values.
As informed by the colleague, he solved by putting the tag globalization
in web.config
as default en-BR
1
Author: Rovann Linhalis, 2017-10-20 12:20:13