Good day.
We have the following problem with the report generator when used with Angular and DotNet WebApi:
We have downloaded the Angular & Api projects from https://github.com/DevExpress-Examples/reporting-angular-integrate-report-designer. Compiled and run from VS2022, everything works fine. The report generetor opens the default report and we also can do a "Save as".
But when we deploy on the IIS server (i.e. C:\inetpub\wwwroot\myapi, either dotnet 8, or dotnet 9), and change the host to 'http://localhost/myapi/', then the report designer opens correctly, BUT there is an error on "Save as".
On F12->Console we can see the error "Failed to load resource: the server responded with a status of 404 (Not Found)" /myapi/myapi/DXXRD:1
Which means for some reason the "myapi" is put twice on the uri.
Can you please give us some guidance in what causes the problem and what the solution is?
In order to reproduce, please download the code from the link. Deploy the ServerApp.Server on C:\inetpub\wwwroot\myapi, change the host to 'http://localhost/smartwebapi/' on the Angular Report Designer project, and execute. The report designer opens, but on F12 there is the error message. then try to do a "Save As" and you must have an error message.
Kind regards,
Dimitris
The correct is "…change the host to 'http://localhost/myapi/' on the Angular Report Designer project…"