Setting up web handler
WebReport requires a specific handler to be set in the web.config file. When you create a report object in Visual Studio, necessary lines are automatically written to the configuration file. The WebReport component checks the availability of the specified configuration at run time of the application. If the required lines are not found in the web.config file an error is thrown, requesting the file to be changed.
The web.config file should contain the following lines when used with an IIS6 server:
<system.web>
…
<httpHandlers>
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
</httpHandlers>
…
</system.web>
and with an IIS7 server, these lines:
<system.webServer>
…
<handlers>
<add name="FastReportHandler" path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
</handlers>
…
</system.webServer>
The correct WebReport configuration lines in the web.config file must be used when transferring your project from one server to another.
Check for correct working of the WebReport handler by means of the URL:
http://yoursite/app_folder/FastReport.Export.axd
An information message gives the version of FastReport and the server time.