api azure result different from the result of my location

0

I created a C # API in azure where it returns an array by passing the following faces:

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 one that is running in my local, but when I pass the same parameters to the local API it brings me different results, it follows the same ones:

API azure (unexpected result)



LocalAPI(Expectedresult)


I do not know why they are giving different results.

    
asked by anonymous 20.10.2017 / 13:22

1 answer

1

Check the configuration of culture because in azure the decimal separator is dot ( . ) and location is comma ( , ).

As in the parameter you pass values with separators, there may be an error in handling these values.

As informed by the colleague, he resolved by putting the tag globalization on web.config as the default

    
20.10.2017 / 14:20