fev 28

Hoje me deparei com o seguinte erro ao tentar executar uma página .net com banco de dados SQL Server.

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

Motivo do erro: As conexões com o banco de dados estavam sendo abertas mas nunca iam sendo fechadas.

Solução: http://linhadecodigo.com/Artigo.aspx?id=1254&pag=2


View this Post in: English French Italian Spanish

fev 07

Erro:

Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation=”true”/> in configuration or <%@ Page EnableEventValidation=”true” %> in a page.

For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Este erro ocorre quando você chama algum evento por javascript, AJAX ou o controle que recebe o evento está com a propriedade visible=false.

Solução: Adicionar enableEventValidation=”false” na diretiva de compilação Page

Ex.:

<%@ Page  enableEventValidation="false" Language="C#" ... %>

Veja mais em

http://groups.google.pt/group/microsoft.public.br.dotnet.framework.aspnet/browse_thread/thread/920cfc78bdf02724

http://www.asp.net/learn/whitepapers/request-validation/


View this Post in: English French Italian Spanish