Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

SID_SILVA

Publicar Site II

Recommended Posts

Ola Amigos

 

No capitulo anterior, eu disse que consegui colocar uma pagina simples no provedor, essa pagina continha apenas um GridView.

So para lembrar estou utilizando o ASP.NET 2.0.

 

Agora estou tentando colocar o site no ar e sem sucesso,Eu consigo carregar a tela de login, dai digito usuario/senha e acontece o erro abaixo:

 

 

 

 

Server Error in '/' Application.

--------------------------------------------------------------------------------

 

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

 

<!-- Web.Config Configuration File -->

 

<configuration>

<system.web>

<customErrors mode="Off"/>

</system.web>

</configuration>

 

 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

 

<!-- Web.Config Configuration File -->

 

<configuration>

<system.web>

<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

</system.web>

</configuration>

 

 

 

Seguindo a sugestao do exemplo, eu fiz o que foi pedido e agora consigo carregar o menu de opcoes, porem para todas as opcoes clicadas, aparece uma informacao padrao em ingles:

 

 

 

Oops an error occured !

 

Sorry an error occured during processing your information. Please use browser's BACK button, and put the valid information to continue.

If the problem still exists, please close the browser & enter other data. This error has been automatically reported to the developer, which will be fixed with in few hours.

Alternatively, the system is updating. Please try again later. We apologize for any inconvenience.

 

O conteudo da mensagem, nao e problema mas o texto da minha pagina de erro, esta em portugues.

 

Poderiam me dizer o que esta acontecendo?

 

Obrigado e um ABraco

Compartilhar este post


Link para o post
Compartilhar em outros sites

Não entendi, essa mensagem aí foi você que escreveu? Não lembro de ter visto uma mensagem dessa no ASP.NET.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Bom Dia

 

Obrigado amigos por sua ajuda.

Essa mensagem apareceu na minha tela de erro, entretanto minha mensagem de erro nao tem nada a ver com essa.Por isso eu achei estranho.

Como o quintelab disse, parece ser uma mensagem do proprio ASP.NET mas eu achei muito estranho.

 

Obrigado e um Abraco

Compartilhar este post


Link para o post
Compartilhar em outros sites

Vai no Global.asax e coloca um método chamado Application_Error.

Coloca um breakpoint ali, todo erro que acontecer em sua aplicação, vai cair neste método. Dentro dele você pode usar Server.GetLastError() para saber os detalhes do erro. Veja se te ajuda. Se a exception não ter muitos detalhes, procure na innerException, assim: Server.GetLastError().InnerException.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.