El archivo '/Controls/reportService.ashx' no existe. Not Found

Posted by: enrique.pv-ext on 7 May 2026, 9:04 am EST

    • Post Options:
    • Link

    Posted 7 May 2026, 9:04 am EST

    I have reportService in Root in WAP, NOT in Controls.

    ‘/Controls/reportService.ashx’ not exists.

    I have a control ASCX for ReportViewer new control.

    I have 2 ascx for reports.

    I get error twice: El archivo ‘/Controls/reportService.ashx’ no existe

            void Application_Error(object sender, EventArgs e)
            {
                var ex = Server.GetLastError();
                logger.Error("Error at: " + sender.ToString(), ex);
      }

    The error:

       en System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
       en System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       en System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       en System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
       en System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       en System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       en System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    In Javascript console:

    Failed to load resource: the server responded with a status of 404 ()Understand this error
    reportService.ashx:1  Failed to load resource: the server responded with a status of 404 ()Understand this error
    CollectionReports.aspx?ID=1&desde=2017/04/30%2000:00&hasta=2020/05/07%2023:59:421 {type: 'c1gridviewselectionchanged', timeStamp: 1778158719106, jQuery111108384593069545292: true, target: table#ctl00_ContentPlaceHolder1_C1GridView1.wijmo-wijgrid-root.wijmo-wijobserver-visibility.wijmo-w…, isTrigger: 3, …}
    CollectionReports.aspx?ID=1&desde=2017/04/30%2000:00&hasta=2020/05/07%2023:59:422 {addedCells: t, removedCells: t}
    ScriptResource.axd?d=x6...G_90&t=ffffffffec54f2d7:2 [Violation] 'readystatechange' handler took 323ms
    [Violation] Forced reflow while executing JavaScript took 79ms
    WijmoControlsResource.axd?scripts=0;1;138;137;6;7;5;4;242;60;122;61;73;107;79;83;117;118;119;123;66;67;74;120;70;90;91;89;93;94;92;96;97;95;99;98;101;100;108;130;88;131;132;136;27;17;55;16;35;31&t=638990748872440533:4  GET https://localhost:44341/Controls/reportService.ashx?clientId=ctl00_ContentPlaceHolder1_ReportViewerUC_ReportDialog_ReportViewer&command=dialog&name=outline&tabId=Outline_ctl00_ContentPlaceHolder1_ReportViewerUC_ReportDialog_ReportViewer 404 (Not Found)
    send @ WijmoControlsResource.axd?scripts=0;1;138;137;6;7;5;4;242;60;122;61;73;107;79;83
    
    Understand this error
    WijmoControlsResource.axd?scripts=0;1;138;137;6;7;5;4;242;60;122;61;73;107;79;83;117;118;119;123;66;67;74;120;70;90;91;89;93;94;92;96;97;95;99;98;101;100;108;130;88;131;132;136;27;17;55;16;35;31&t=638990748872440533:4  GET https://localhost:44341/Controls/reportService.ashx?clientId=ctl00_ContentButtons_ReportViewerUC_Footer_ReportDialog_ReportViewer&command=dialog&name=outline&tabId=Outline_ctl00_ContentButtons_ReportViewerUC_Footer_ReportDialog_ReportViewer 404 (Not 
    

    any suggestions ?

  • Posted 8 May 2026, 7:52 am EST

    Hi,

    It looks like the 404 error is occurring because the C1ReportViewer is hosted inside a User Control (.ascx) located in your /Controls/ folder. By default, ASP.NET resolves relative URLs based on the location of the calling control, which is why it is looking for /Controls/reportService.ashx instead of the root.

    To fix this, you must explicitly define the absolute application root path for the service handler so it stops using relative routing.

    Please try to update your C1ReportViewer markup in both of your .ascx files to include the ServiceUrl property pointing to the root handler:

    <cc1:C1ReportViewer ID="C1ReportViewer1" runat="server" ServiceUrl="~/reportService.ashx" ... >
    </cc1:C1ReportViewer>
    

    Alternatively, you can try to set this in the Page_Load of your .ascx.cs code-behind:

    C1ReportViewer1.ServiceUrl = ResolveUrl("~/reportService.ashx");
    

    This should force the viewer to look at the WAP root regardless of where the .ascx control is nested. If the issue persists, then please share a stripped-down sample application reproducing this issue so we can test this at our end and get back to you accordingly.

    Regards,

    Akshay

  • Posted 11 May 2026, 3:20 am EST

    ServiceUrl property doesn’t exists.

    I use

    ReportServiceUrl="~/ReportService.ashx"

    finally, I use:

        <cc1:C1ReportViewer ID="ReportViewer" runat="server"
            ReportServiceUrl="~/ReportService.ashx"
            ReportsFolderPath="~/_Reports/Temp"
            Width="100%" Height="100%"
            Zoom="100%"
            ReportName="report"
            EnableLogs="False"
            CollapseToolsPanel="True"
            FullScreen="False" />
  • Posted 11 May 2026, 7:37 am EST

    Hi,

    I am glad to know the issue is resolved.

  • Posted 11 May 2026, 10:13 am EST

    yeah, using ReportServiceUrl

    Thanks a lot !!!

Need extra support?

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

Learn More

Forum Channels