Report not found

Posted by: hfeldman on 22 March 2020, 2:31 pm EST

    • Post Options:
    • Link

    Posted 22 March 2020, 2:31 pm EST

    Hi,

    When loading reports on the deployed application I’m receiving the message “Report [name] not found”.

    
    <Viewer
                        report={{
                            Uri: `${sessionStorage.getItem("reportName")}.rdlx-json`, Params: parameters
                        }}
                        sidebarVisible={true} toolbarVisible zoom='100%'
                    />
    
    

    This is for a .net core application so I’m not sure where the final report file should be stored?

    By default in visual studio it’s in the public folder and in deployment it’s in:

    C:\inetpub\wwwroot\UserPortalAppTest\ClientApp\build

  • Posted 22 March 2020, 6:50 pm EST

    Hello,

    I am able to replicate the issue at our end. I have escalated the issue to our development team(ARJ-1927) and will update you once I get any information from them.

    Thanks,

    Mohit

  • Posted 23 March 2020, 8:31 pm EST

    Hello,

    You can use the following code in startup.cs to resolve your issue:

    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
           {
               var provider = new FileExtensionContentTypeProvider();
               provider.Mappings[".rdlx-json"] = "application/json";
               app.UseStaticFiles(new StaticFileOptions
               {
                   FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "ClientApp", "build")),
                   ContentTypeProvider = provider
               });
    }
    

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels