Se produjo una excepci??n en el inicializador de tipo de 'FastReport.Report'

Hi, i have the following problem,
i have a c# web service and in one of the web methods i initialize a FastReport.Report like the following
FastReport.Report report1 = new FastReport.Report.fromFile("filename");
when i execute the web method in this line send this error Se produjo una excepci??n en el inicializador de tipo de 'FastReport.Report'

Someone knows how to solve this.
thanks.

Comments

  • edited 1:20PM
    Hello,

    FastReport is probably trying to read its configuration file. You have to disable it with the following code:

    FastReport.Utils.Config.WebMode = true;

    You need to execute this code before you access the Report class.
  • edited 1:20PM
    thanks, its work without problems.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.