c# - uiCulture does not work on server -


i use asp.net, ef 6.0.2, mvc 5.1.1. in web.config set culture , uiculture:

<system.web>     <globalization culture="de-ch" uiculture="de" enableclientbasedculture="false"  /> </system.web> 

when run application locally, validation messages shown in german correctly. when publish project webserver, validation message shown in english.

but printing of:

culture: @system.threading.thread.currentthread.currentculture.tostring() ui culture: @system.threading.thread.currentthread.currentuiculture.tostring() 

shows correct setted 'de-ch' , 'de'...

the validation takes place on server instead (not client side). because validation message after submitting form occurs

what want, set language of application fix german-switzerland.

the problem solved: german language pack not installed on server.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -