asp.net-coredevexpressasp.net-core-3.1devexpress-mvc

Xtrareports stylesheet is missing


I'm using .NET CORE 3.1 and I implemented xtrareports in my project. Now I'm using free trial of Devexpress. But when I'm loading my project after publish project and publish node_modules file on server the *.repx is empty and I have 28 wrong for loading file . and the stylesheet file message "Failed to load resource: the server responded with a status of 404 ()".enter image description here


Solution

  • If nodeJS is installed on your server, IIS creates a virtual directory for node_modules and doesn't allow to serve this folder to client. So, even you upload the folder under wwwroot, client can not access this folder and report will not work.

    So, try to remove virtual directory or move your files to another server that NodeJs is not installed.