C#C
C#2y ago
Zerthz

MVC model binding issues

Hello,
I got some issues with model binding for my MVC endpoint. All doubles fail and become 0/null.

I went into the model state to check what was wrong, and it said that it had an invalid value. The value had a period in it as the separator. I copied the exact value the model state said was invalid and placed it into the local and it was accepted no problem.

Have anyone seen an issue like this? What would you recommend to deal with it, a custom binder?
Was this page helpful?