Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parâmetros do Web.config #2

Open
frozelio opened this issue Jan 27, 2021 · 0 comments
Open

Parâmetros do Web.config #2

frozelio opened this issue Jan 27, 2021 · 0 comments

Comments

@frozelio
Copy link

frozelio commented Jan 27, 2021

Após fazer o deploy e tentar abrir a página de login do sistema, o IIS não conseguia carregar a página. Tive que alterar dois parâmetros no Web.config e assim a página carregou. Os parâmetros foram:

`<system.web>

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

<!--<customErrors mode="RemoteOnly" defaultRedirect="~/Erro" />-->

**<customErrors mode="Off">**

  <error statusCode="404" redirect="/Home/Index" />

  <error statusCode="500" redirect="/Base/ErroGenerico" />

</customErrors>

<httpCookies requireSSL="false" />

**<compilation targetFramework="4.5" debug="false" />**

<httpRuntime targetFramework="4.5" />

<sessionState timeout="20" cookieless="UseCookies" />

</system.web>`

O customErrors deixei em Off para ter mais detalhes do que estava acontecendo e com isso descobri que o parâmetro debug não tinha um valor válido, coloquei false e a página carregou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant