Report Logs User Out when Viewing Next Page

How Can We Help?

Report Logs User Out when Viewing Next Page

< Back

Issue

There is a travel request report that runs successfully, but on clicking to view the second page, it logs the user out of XMPro.

In Report Designer, the second page displays fine.

The report itself is being displayed in a Reference Label – the activity prior to this provides the user with a browse page to select that they want to print.

The version is v6.0.3 and the browser is IE10.

The managed code on the activity that displays the report is:

public void P_50TravelReqReport_OnLoad(
{
string t_id = activity.GetControlValue("P_3030ID");
activity.SetControlValue("P_5010RptView", string.Format("<iframe src='./Reports/reportviewer.aspx?p1={0}&reportName={1}' width='98%' height='1150' frameborder='no'></iframe>", t_id, "rpt_Travel_Req")); 
}

Resolution

There may be an entry in the web.config file that causes the user to be redirected to the login screen when an error occurs on the Report Viewer. Under the <devExpress> section there maybe be the following:

<errors callbackErrorRedirectUrl="~/Account/Logout.aspx" />

Removing the value so that it looks like this:

<errors callbackErrorRedirectUrl="" />

You could help you diagnose the problem as you should now receive an error message rather than be logged out.

Just take care when modifying web.config as any incorrect syntax in the file will bring the site down.

Comments are closed.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X