Fast Report runtime error

edited 11:23PM in FastReport .NET
Hi,

I developed small application with Fast Report.net (latest build) I connect to the DB using FastReport Postgres Dll, everything was working fine on my machine.

When I tried to install the application on fresh new machine, I got this error:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
FastReport.Utils.ClassException: Can't find object PostgresDataConnection
at FastReport.Utils.FRReader.Read()
at FastReport.Base.DeserializeSubItems(FRReader reader)
at FastReport.Base.Deserialize(FRReader reader)
at FastReport.Data.Dictionary.Deserialize(FRReader reader)
at FastReport.Utils.FRReader.Read(IFRSerializable obj)
at FastReport.Base.Deserialize(FRReader reader)
at FastReport.Report.Deserialize(FRReader reader)
at FastReport.Utils.FRReader.Read(IFRSerializable obj)
at FastReport.Report.Load(Stream stream)
at FastReport.Report.Load(String fileName)
at _CXCallLogsReporter.CrystalFilter.CrystalFilter_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


*****

Do I need to distubite any other dll or component with the Fast Report dlls.

What about the FastReport.Postgres.dll file, do I have to destrebuite it as well.

Thanks

Comments

  • edited 11:23PM
    wrote:
    What about the FastReport.Postgres.dll file, do I have to destrebuite it as well.

    Sure. You need to put this file together with FastReport.dll.
  • edited 11:23PM
    AlexTZ wrote: »
    AlexTZ wrote: »
    What about the FastReport.Postgres.dll file, do I have to destrebuite it as well.

    Sure. You need to put this file together with FastReport.dll.

    I did, but still give the same result.

  • edited 11:23PM
    Hi,

    I put FastReport.Postgres.dll in the same folder with FastReport.dll, but still it gives the same error and crach,

    Please we need to get this fixed by today, Do I have to build the application in spesific way (I build it as x86)

    This is very URGENT
  • edited 11:23PM
    Hi,

    The correct fix for this issue is to include the FastReport.Postgres.dll path in FastReport.config file.

    This is the only way Fast Report will get to run Postgres Databse Applications.

    Alex, please confirm if this is the right solution.

    Thanks,
  • edited May 2009
    FastReport.config file is per-user by default. The better way is to include FastReport.Postgres.dll in your application, as described in the "readme.txt" file that comes with FastReport.Postgres:
    wrote:
    3) register the dll programmatically
    - add the "FastReport.Postgres.dll" reference to your project;
    - execute the following code once at the application start:
    FastReport.Utils.RegisteredObjects.AddConnection(typeof(PostgresDataConnection));

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.