I just inherited an old reporting website that I am trying to update. I didn't write it, but needed to convert to .net 6.0 for API compatibility. I was getting an error "Cannot access the Reporting REST service." but followed this guide https://www.telerik.com/blogs/embedding-beautiful-reporting-aspnet-core-web-applications and adding the ".AddNewtonsoftJson();" part now makes it so that I instead get an Exception "The extension is not supported."
at Telerik.Reporting.Services.Engine.ResourcesEngine.GetMimeType(String filename)
at Telerik.Reporting.Services.Engine.ResourcesEngine.GetResource(String folder, String name, String& mimeType, Type type)
at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetResourceCore(String folder, String resourceName, Type type)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<<InvokeActionMethodAsync>g__Logged|12_1>d.MoveNext()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<<InvokeNextActionFilterAsync>g__Awaited|10_0>d.MoveNext()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<<InvokeNextExceptionFilterAsync>g__Awaited|26_0>d.MoveNext()
I have trdp files. I updated the path so the IReportServiceConfiguration points to the correct directory. I set a breakpoint in my ReportController ctor and it gets hit when I try to load the report page, but then I either get the error "Cannot access the Reporting REST service. (serviceUrl = '/api/reports/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)" or the one about the file extension. I've followed all the guides for enabled CORS. Do I have to do any kind of MIME configuration to support the TRDP files?
Please advise. Thank you