.NET Core Web Application works on Localhost but not when published to Azure as App Service
My jsreport will work on my development Localhost but runs into an exception when published to Azure as an App Service (App Service Plan:Standard)
I get the following exception when I click on menu:
An unhandled exception occurred while processing the request.
Win32Exception: The specified executable is not a valid application for this OS platform.
I have the following installed via Nuget Package Manager
The Controller is decorated as following:
The following line of code worked previously:
Any ideas or recommendations would be great.
Please check this
Running this as Linux App does not look like an option at this time.
I trying to understand the following: "external service like jsreportonline and connect to it from Azure Web App using jsreport.Client"
What would the coding example be if I am working from my controller:
How do I redirect this to jsreportonline?
See this in the docs
I have changed my startup.cs and included the following (xxx is an example)
services.AddJsReport(new ReportingService("https://xxx.jsreportonline.net", "xxx-email", "xxx-password"));
And I have left the following the same in my Controller:
I am not using a template, but rather get a "screenshot" of the view
I get the following error:
JsReportException: Unable to render template.
jsreport.Client.ReportingService.RenderAsync(string request, CancellationToken ct)
I have this working now. My "xxx-email" account had a typing mistake in it.
Thanks for you help.