Server Error : Timeout expired September 1, 2011
Posted by jbanju in Programming ASP.NET.trackback
แก้ไข Error
Server Error in ‘/’ Application.
——————————————————————————–
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
ให้แก้ไขที่ web.config โดยเพิ่ม Timeout
<system.web>
<httpModules>
<add name=”Progress” type=”WebSupergoo.ABCUpload5.ProgressModule, ABCUpload5, Version=5.3.0.0, Culture=neutral, PublicKeyToken=1f89539196ce5fbf”/>
</httpModules>
<compilation>
<assemblies>
<add assembly=”ABCUpload5, Version=5.3.0.0, Culture=neutral, PublicKeyToken=1f89539196ce5fbf” />
</assemblies>
</compilation>
<httpRuntime
maxRequestLength=”1048576″
executionTimeout=”3600″
/>
<sessionState
timeout=”60″
/>
ในส่วนของ code program ตรงส่วนของ connection
Command.CommandTimeout=90//time in sec’s
…
Comments»
No comments yet — be the first.