USING fastreport with mysql database, The 'obj' parameter must be of DataConnectionBase type

Following the guideline I found in readme file about registering the dll programmatically :
- add the "FastReport.MySQL.dll" reference to your project;
- execute the following code once at the application start:
FastReport.Utils.RegisteredObjects.AddConnection(typeof(MySqlDataConnection));
I execute this in the loading event of my main form but I am getting an error message saying :The 'obj' parameter must be of DataConnectionBase type
and if I remove when I wanna run the report I am getting the error saying: can not found the object mysqldataconnection

development tool:va2015
Applicable object:webReport

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.