asp.net mvc - Why can't I make remote server (Windows Server 2012) show localized validation messages in my MVC (.NET 4.5) application? -
i have mvc application uses .net 4.5. debug locally , publish remote server. local copy has validation messages in polish, remote 1 has them in english. i've added <globalization culture="pl-pl" uiculture="pl-pl" />
hoping fix issue, outside of switching inputs/displays localized date , float format, nothing changed.
after have manually set in iis' site setting .net globalization both culture , ui culture polish (poland) (pl-pl) (both of set neutral reason) , made sure enable client based culture set false. didn't either (even after restarting site).
i've seen problem mentioned number of times on internet, no working solutions. nonetheless, 1 of threads found problem suggested .net 4.5 missing proper language pack. seem easy problem fix, yet have found impossible install language pack on remote server.
the remote server running on windows server 2012 (seems english version). when try install .net 4.5 language pack error message saying .net 4.5 installed.
i found language pack .net 4.5.1, 1 greets me error. time it's different error though, says system language incompatible language pack's language , need either switch os different language or install language pack. checked control panel if perhaps possible switch os language, expected can't that. language packs windows server 2012, there one, isn't available mere mortals. it's available members of microsoft partner network program.
has had same problem , resolved or can give me clues i'm doing wrong here?
since fix preformed else, cannot describe exact process, i'm reposting general instructions answer.
contrary believed, appears possible change language of windows server 2012 in control panel, it's option wasn't obvious me. switching option makes system big patch might leave no .net runtimes (and possibly other libraries, system tools). although might forced reinstall those, thankfully should able in language of choice. when have time test further, i'll post more info answer.
for now, if have similar problem,
- try going "control panel"
- open "clock, language, , region" section
- and "language" subsection
within section make sure language, want .net (and validation messages) in, there.
if it's not, add , follow next step:
- click on "options" hyperlink(like) button (on right of language row)
- wait "windows display language" section load (previously didn't bother , missed next option result)
- pick "download , install language pack" option , follow installation (it might take while)
after doing this, should possible install correct language pack .net.
Comments
Post a Comment