HTTP Error 404.0 - Not Found

Posted by: renu.ap on 27 February 2018, 11:05 pm EST

    • Post Options:
    • Link

    Posted 27 February 2018, 11:05 pm EST

    Hi,

    I tried to implement export to PDF. im getting following error. Could you please help ?

    Attached Code

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    Detailed Error Information:

    Module

    ManagedPipelineHandler

    Notification

    ExecuteRequestHandler

    Handler

    AR11_ReportBinariesStreamer

    Error Code

    0x00000000

    Requested URL

    http://localhost:63635/ActiveReports.ar11?Token=b89d0b0d-3c4d-4ef6-aa6e-1d9c8ec58567&Command=Export&ExportType=Pdf&SaveAsDialog=true&Generation=1

    Physical Path

    C:\Work\HTMLViewer_ExportButtons_Extended\HTMLViewer_ExportButtons\ActiveReports.ar11

    Logon Method

    Anonymous

    Logon User

    Anonymous

    Request Tracing Directory

    C:\Users\adm-rperu01\Documents\IISExpress\TraceLogFiles\HTMLVIEWER_EXPORTBUTTONS

    HTMLViewer_ExportButtons.zip

  • Posted 28 February 2018, 5:56 pm EST

    Hello Renu,

    I am not able to replicate the issue with the attached sample using the latest build. Could you please check with the latest build. You can download the latest installer from the following link:

    http://cdn.grapecity.com/ActiveReports/ar11/hotfixes/ActiveReports-v11.2.12300.0.msi

    Thanks,

    Mohit

  • Posted 13 March 2018, 12:31 am EST

    It works with latest service pack. What was the issue without service pack ? Because all other application will be impacted if we update service pack.

  • Posted 13 March 2018, 7:48 pm EST

    Thanks lot. Its working now.

  • Posted 13 March 2018, 7:51 pm EST

    Hello,

    The problem is that the event “onbeforeunload” is called after export on the current page. If you don’t want to install the new service pack, you could use the following workaround to avoid the issue:-

    
    protected void Page_Load(object sender, EventArgs e)
            {
                if (Page.IsPostBack)
                {
                  [b]  Page.ClientScript.RegisterStartupScript(typeof(String), "DisableBeforeUnload", @"<script>window.onbeforeunload = null;</script>");[/b]
                    string reportName = this.fldReportName.Value.ToString();
                    switch (reportName)
                    {
                        case "SectionReport1":
                            SectionReport1 rpt1 = new SectionReport1();
                            WebViewer1.Report = rpt1;
                            break;
                        case "SectionReport2":
                            SectionReport2 rpt2 = new SectionReport2();
                            WebViewer1.Report = rpt2;
                            break;
                    }
                }
            }
    
    

    Hope it helps.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels