Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection times out

Status
Not open for further replies.

stephenk1973

Technical User
Jun 11, 2003
246
GB
I'm running a stored procedure on my SQL Server, it takes a minute or two depending on the passed parameters.

When i attach my .Net page the page always times out after 30seconds, but in may sting i (think) i have set the timeout to 200s. web.config as below....

Where should i be setting the Timeout?

Thanks

Stephen


<connectionStrings>

<add name="AAReportConnectionString" connectionString="Data Source=AAPPS02;Initial Catalog=AAReport;Integrated Security=True;Connection Timeout=200;" providerName="System.Data.SqlClient"/>

</connectionStrings>


w
 
When i attach my .Net page the page always times out after 30seconds
In that case, it's the page that is timing out not the connection to the database. Try setting this timeout:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
i added the following to me web.config, weather the value is 2 or 2000 the page still times out after 30 seconds.

<httpRuntime executionTimeout="200"/>


The page in in a master page, could this confuse it?

Thanks

Stephen

 
No, it's irrelevant of whether it is a Master page or not. If the above didn't work, you may want to try setting the Server.ScriptTimeout in the page. If that doesn't work, you'll have to look at the timeout that is set for scripts in your web server (e.g. IIS).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top