locked
Report Viewer Control Error in Custom aspx Page RRS feed

  • Question

  • Hi all,

    Im getting the below Error when I navigate the aspx page from CRM. But the same page is working in Development Enironment when I click "RUN"

    Please anyone post the sample code for running Reportviewer control in custom aspx page through CRM navigation.

    Thanks in Advance.

     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: Microsoft.Reporting.WebForms.MissingReportServerConnectionInformationException: In remote mode, the Report Viewer control requires session state be enabled or Report Server connection information specified in the config file.

    Source Error:

     

    Server Error in '/DashBoardCRM' Application.

    In remote mode, the Report Viewer control requires session state be enabled or Report Server connection information specified in the config file.

    [No relevant source lines]

    Source File: c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\dashboardcrm\11aa5e39\18cb2175\App_Web_lu2hvwxp.0.cs    Line: 0

    Stack Trace:

    [MissingReportServerConnectionInformationException: In remote mode, the Report Viewer control requires session state be enabled or Report Server connection information specified in the config file.]
     Microsoft.Reporting.WebForms.ReportViewer.EnsureSessionOrConfig() +200
     Microsoft.Reporting.WebForms.ReportViewer.SaveViewState() +23
     System.Web.UI.Control.SaveViewStateRecursive() +94
     System.Web.UI.Control.SaveViewStateRecursive() +205
     System.Web.UI.Control.SaveViewStateRecursive() +205
     System.Web.UI.Page.SaveAllState() +713
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11031816
     System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11031514
     System.Web.UI.Page.ProcessRequest() +91
     System.Web.UI.Page.ProcessRequest(HttpContext context) +240
     ASP.dashboard_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\dashboardcrm\11aa5e39\18cb2175\App_Web_lu2hvwxp.0.cs:0
     System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
     System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
    

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    Thursday, October 28, 2010 7:12 AM

Answers

  • In your app's web.config make sure that the <pages> tag has the following properties: <pages enableSessionState="true" enableViewState="true">

    and in your <httpModules> section make sure you have the following entry:

    <add name="Session"  type="System.Web.SessionState.SessionStateModule"/>

    and after the <httpModules> section, include: <sessionState mode="InProc" cookieless="false" timeout="20"/>

    Thursday, October 28, 2010 8:46 AM

All replies

  • In your app's web.config make sure that the <pages> tag has the following properties: <pages enableSessionState="true" enableViewState="true">

    and in your <httpModules> section make sure you have the following entry:

    <add name="Session"  type="System.Web.SessionState.SessionStateModule"/>

    and after the <httpModules> section, include: <sessionState mode="InProc" cookieless="false" timeout="20"/>

    Thursday, October 28, 2010 8:46 AM
  • Hi Gary..

    Thanks a lot.. It works for me

    Thursday, October 28, 2010 11:55 AM
  • HI,

    Issue:Sandbox Solution Error: "Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred"

    Thursday, February 18, 2016 1:30 PM