Globalization does not work when deploying

Asked

Viewed 69 times

1

I deployed an ASP.NET application on a machine located in the center of the United States and now it behaves as being American even with the instruction below in the web.config file:

<globalization culture="pt-BR" uiCulture="pt-BR" />

It is worth mentioning that this configuration is in the file Views/web.config and not in the archive Web.config which is located in the project root folder.

  • But shouldn’t it be on the root web.config? It’s not why?

  • It is not at the root because in development environment the configuration was working perfectly

2 answers

1


You need to put that statement on web.config from the root of your application, within the <configuration> and <system.web>.

<configuration>
    <system.web>
        <globalization culture="pt-BR" uiCulture="pt-BR" />
    </system.web>
</configuration>

0

Have you checked which language is being used in your browser?

intenert explorer: inserir a descrição da imagem aqui

Chrome: inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.