Page 1 of 1

Webresources.axd not found

Posted: Wed Jul 13, 2016 9:31 am
by businaka
Hello.

I am using Orchard cms with .Net Framework 4.5, Stimulsoft version is 2016.1.0.0, Windows 10 x64, VS 2015. When I try to use the StiMvcDesignerFx I get the NetworkError: 404 Not Found - http://localhost/WebResource.axd?d=iOtY....
This error displayed on the page:

To view this page ensure that Adobe Flash Player 11.1 or greater is installed.

But I checked version of Flash and it is 22.0.0.209 installed. I checked in multiple browsers (Firefox, Chrome, IE).
My code on view looks like:

Code: Select all

   @Html.Stimulsoft().StiMvcDesignerFx(new StiMvcDesignerFxOptions()
{
   Actions =
{
GetReportTemplate = "GetReportTemplate"
},

})
My action in controller:

Code: Select all

public ActionResult GetReportTemplate()
{
StiReport report = new StiReport();
report.Load(Server.MapPath("~/Content/1.mrt"));
 
return StiMvcDesignerFx.GetReportTemplateResult(report);
}
In my web.config file defined section

Code: Select all

<system.webServer>		
	<handlers>			
            <add name="WebResource" path="WebResource.axd" verb="*" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" resourceType="File" preCondition="integratedMode" />
         </handlers>
<system.webServer>	
In the same time if I use StiMvcViewerFx report is displayed correctly.
I also tried to create simple MVC application and both StiMvcViewerFx and StiMvcDesignerFx work well.

Could you please help me, what I am doing wrong?

Re: Webresources.axd not found

Posted: Wed Jul 13, 2016 3:57 pm
by HighAley
Hello.

You should add the DesignerEvent action. It's necessary for StiMvcDesignerFx.

Code: Select all

@Html.Stimulsoft().StiMvcDesignerFx(new StiMvcDesignerFxOptions()
    {
       Actions =
        {
            DesignerEvent = "DesignerEvent",
            GetReportTemplate = "GetReportTemplate"
        },

    })
You could find working samples on the Github.

Thank you.