Base solution for your next web application
Open Closed

Devexpress report error DXXRDV 404 #11041


User avatar
0
winhost created

Hi, I've followed the guide I found here: https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/DevExpress-Reporting-Implementation

and I am managing to get the report viewer to "halfway" load up with an error:

POST https://localhost:44302/DXXRDV 404

Project cors are disabled if it is of any use.


5 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @winhost

    Can you please check the steps in that document https://docs.devexpress.com/XtraReports/401762/web-reporting/asp-net-core-reporting/document-viewer-in-asp-net-applications/quick-start/add-the-document-viewer-to-an-aspnet-core-application

  • User Avatar
    0
    winhost created

    I followd your link but i didn't solve the problem.

    I'll send you an email with the project.

    thanks a lot

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @winhost

    Did you solve this problem ?

    Thanks,

  • User Avatar
    0
    winhost created

    No, please check my email with link of project.

    Thanks a lot

  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @winhost

    In new version of Devexpress something changed. We will update the document. You can solve your problem by following the solution below.

    • Create a CustomWebDocumentViewerController like this
    using DevExpress.AspNetCore.Reporting.WebDocumentViewer;
    using DevExpress.AspNetCore.Reporting.WebDocumentViewer.Native.Services;
    
    namespace WebApplication1.Controllers
    {
        public class CustomWebDocumentViewerController : WebDocumentViewerController
        {
            public CustomWebDocumentViewerController(IWebDocumentViewerMvcControllerService controllerService)
                : base(controllerService)
            {
            }
        }
    }
    
    • Go to your [YOURAPPNAME]WebMvcModule
    • Add this class dependency injection into PreInitialize function IocManager.Register(typeof(CustomWebDocumentViewerController), DependencyLifeStyle.Transient);