jump to navigation

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: