ScriptResource.axd timed out? Try this...

by Bill Forney 24. May 2009 00:13

While poking at a recent project with a large stick my script resource handler began coughing and gave me a nasty timeout error. After a little prodding of google I came up with this fix. It works, assuming you don't actually have something wrong with your code that is timing out.

In your master page or page where your script manager lives add the AsyncPostBackTimeout value. The default is 90 seconds in case you're wondering.

<asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout ="360000"></asp:ScriptManager>

In your web.config file, add this to your system.web section.

<httpRuntime executionTimeout="360000"/>

That's it. Your pages shouldn't timeout now unless you've broken something else. :)

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Powered by BlogEngine.NET 1.6.2.17
Theme by Extensive SEO

Recent Comments

Comment RSS

About the author

William L. Forney was born in Pennsylvania and relocated to Washington State in early 1999. His hobbies include all the usual things: movies, books, music, video games, etc. He writes short sci-fi/fantasy stories which will someday be published in the form of small novels.

Bill's Photograph

He loves computers and has worked in several different areas from web, multimedia, video and 3D animation to database and windows development.

Currently he works at Visible Reality, LLC as the lead developer and improvGroup, LLC as a networking consultant.

He also works with Padgett & Padgett, PLLC, the accounting firm where he setup shop after moving.

His other blog can be found here.