Page 1 of 1

Controller and Action reversed on ViewerEvent callback

Posted: Thu Nov 07, 2019 2:35 am
by David H
Hello,

Asp.Net Core 3.0 application with Stimulsoft.Reports.Web.NetCore 2019.4.1

The callback to ViewerEvents from StiNetCoreViewer component appears to me to have reversed the action and controller in the URL.

The Initial get from the browser is to "/Reports/index" and seems to work fine.
The generated Javascript then initiates a GET to:

"/ViewerEvent/Reports?stiweb_compone...".

It looks to me like it should be:

"/Reports/ViewerEvent?stiweb_compone....".

Might I have something mis-configured?

Thank you.

Re: Controller and Action reversed on ViewerEvent callback

Posted: Fri Nov 08, 2019 8:55 am
by Lech Kulikowski
Hello,

The full supporting of the NET Core 3.0 will be available in the next release build.

Thank you.

Re: Controller and Action reversed on ViewerEvent callback

Posted: Tue Nov 12, 2019 3:30 pm
by joadan
Hi

I was able to workaround this by setting the RouteTemplate

Code: Select all

@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
    Server =
    {
        RouteTemplate = "/Viewer/{action}"
        
    },
           Actions =
           {
               GetReport = "GetReport",
               ViewerEvent = "ViewerEvent"
           }
});
Regards Joakim

Re: Controller and Action reversed on ViewerEvent callback

Posted: Tue Nov 12, 2019 10:47 pm
by Lech Kulikowski
Hello,

Thank you for the information.