Report don't load

Webreport is don't load on ie and firefox browser ( like on attachment). I have set WebMode = true. Another computer is OK. Where is the problem?

Comments

  • edited 3:34PM
    try to debug in firefox, i believe there is an error in XHR request
  • edited 3:34PM
    I don't get any request . In debug i look ProcessRequest(HttpContext context) function dont' run. Where the problem is?
  • edited January 2017
    the mechanism of fastreport web is :
    1. returning html which contains anitmated progress picture and a syntax to call webservice via ajax/xhr script, to enable calling webservice, you need to attach :
    (note: MVC Razor style)
    @WebReportGlobals.Scripts()
    @WebReportGlobals.Styles()

    2. in web.config, you must set webhandler to enable webservice
    in system.web section:
    <httpHandlers>
    <add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport" />
    </httpHandlers>

    in system.webserver section:
    <handlers>
    <add name="FastReportHandler" path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport" />
    </handlers>
  • edited 3:34PM
    I have it all. On my computer works properly. On another dont' work (another server , the same application). Maybe IIS configuration is not properly.
  • edited January 2017
    double check the IIS installation features from the control panel (Programs and Features -> Turn Windows Features on and off -> Internet Information Services -> World Wide Web Services -> Application Development Features).

    and

    application pool in IIS Manager, another reference : https://msdn.microsoft.com/en-us/library/aa560277.aspx
  • edited 3:34PM
    Maybe limit requests on IIS for FastReportHandlar ?
  • edited 3:34PM
    Interesting.....are you using Web Farm and Web Garden architectures?

    from documentation :
    To use the FastReport report generator in a multi-server (Web Farm) or multi-processor (Web
    Garden) architecture there are additional requirements for creating special storage for data
    synchronization between WebReport objects.
  • edited 3:34PM
    I know where is the problem. When is set application pool on 'Classic' mode , FastReportHandler isn't set on IIS in mapping service( isn't read from web.config ).
    It have to be 'Integrated' mode. But why isn't work on 'Classic' mode?
  • edited 3:34PM
    Read this : https://blogs.msdn.microsoft.com/tmarq/2007...-preconditions/

    IIS uses http handlers from both <system.web><httpHandlers> and <system.webServer><handlers>.

    The solution is add precondition: integratedMode, therefore, if you use 'classic mode', IIS will not use handler with precondition 'integratedMode'
      <system.webServer>
        <handlers>
          <add name="FastReportHandler" path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport" preCondition="integratedMode,runtimeVersionv4.0" />
        </handlers>
      </system.webServer>
    
  • edited 3:34PM
    You have right. It's work. I had to be added <validation validateIntegratedModeConfiguration="true" /> in 'classic mode' .
    <system.webServer>
        <handlers>
          <add name="FastReportHandler" path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport" preCondition="integratedMode,runtimeVersionv4.0"/>
        </handlers>
        <validation validateIntegratedModeConfiguration="true" />
      </system.webServer>
    

Leave a Comment