web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

AX ReportViewer web part fails with time out after running >90 seconds

Dynamics AX Support Profile Picture Dynamics AX Support

I recently have an incident with the same timeout error mentioned in the blog in below that customer would like to run report exceeding 4 minutes in EP. The same steps are used to extend the AsyncPostBackTimeout attribute except that AxScriptManager is searched/modified instead of ScriptManager in the master page mentioned in the blog.

http://blogs.msdn.com/b/selvar/archive/2013/05/15/sharepoint-web-part-page-hosting-reportviewer-web-part-fails-with-sys-webforms-pagerequestmanagertimeoutexception-the-server-request-timed-out.aspx

We then encounter the “Code Block are not allowed in this file” error that following the blog in below does not resolve the error.

http://svengillis.blogspot.com/2008/03/code-block-are-not-allowed-in-this-file.html

If you encounter similar error, here is another approach to extend AsyncPostBackTimeout

1) Open the master page from \Web\Web Files\Static Files\defaultaxV4 in the AOT

2) Search for the OnLoad() method to replace in something in below.

protected override void OnLoad(EventArgs e)

{

base.OnLoad(e);

AxScriptManager scripts = AxScriptManager.GetCurrent(this.Page);

if (scripts != null)

{

scripts.AsyncPostBackTimeout = 600; // 600 seconds

}

//Call Header.DataBind to generate dynamics styles in header

Page.Header.DataBind();

}

3) Save and deploy the defaultaxV4 master page (Right click and select Deploy Element)

Comments

*This post is locked for comments