Open Closed

Devexpress report error DXXRDV 404 #11041


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)
  • 0
    musa.demir created
    Support Team

    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

  • 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

  • 0
    ismcagdas created
    Support Team

    Hi @winhost

    Did you solve this problem ?

    Thanks,

  • 0
    winhost created

    No, please check my email with link of project.

    Thanks a lot

  • 0
    krai 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);