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.
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
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.