FastReport-mono - Demo - Object not found Error (Error 404)

edited October 2012 in FastReport.Mono
Hi
We have installed the mono on OpenSUSE Linux Version 12.2.

We had installed successfully installed the following packages:
the Apache web server
the runtime Mono
mod_mono
xsp server (implements ASP.NET-pages functionality)

After this, we tried executing sample HelloWorld aspx pages and it executes successfully.

But while trying to executing the FastReport demos, we are encountering the following issues:

1. While executing the demos in the folder Demos/C#/Web/Default.aspx, we are getting "Object not found" error (Error 404).
(We had also provided the permissions 777 to the entire Fast-Reports folder and its sub-folders & files).


2. We are getting the following error while executing "mono Demo.exe" from command line:
====================================================================
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0
at Demo.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0
at Demo.Program.Main () [0x00000] in <filename unknown>:0
==================================================================================================

Can you help me to address the above issues so that we can have it working in our environment?

Appreciate your immediate help.

regards
Param

Comments

  • edited 6:38PM
    I think that you have installed Framework 4.0, but you should install Framework 2.0 too.

  • edited 6:38PM
    Thanks for the response.
    I have installed Framework 2.0 Only.

    regards
    Param
  • edited 6:38PM
    Sorry for response delay.

    It seems that some dll are missing. Here is useful link: http://www.mono-project.com/DllNotFoundException

    We have tested FR.Mono under Suse Linux , Ubuntu Linux, Mac OS X and Windows and we cannot reproduce that error. What operating system are you using?

    Could you create a simple WinWorms project, see what is going on, and tell us?


    Sincerely,
    Aleksey
  • edited 6:38PM
    An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll???
  • edited 6:38PM
    I anticipate that you accept installed Framework 4.0, but you should install Framework 2.0 too.
  • Hello!

    In Linux, the Mono environment implements the System.Drawing graphics library via the native libgdiplus package. If the package is not installed or there is no DLL mapping (dllmap) in the Mono configuration, any GUI or graphics application will fail to launch.

    Install the library via the OpenSUSE package manager:

    sudo zypper install libgdiplus0 libgdiplus-devel

    Check that there is a mapping section in the /etc/mono/config file:

    xml
    <configuration>
    <dllmap dll="gdiplus.dll" target="libgdiplus.so.0" os="!windows"/>
    </configuration>
    

    The web application’s web.config file must contain a registration for the export handler:

    <system.web>
    <httpHandlers>
    <add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
    </httpHandlers>
    </system.web>
    

    The web server user (wwwrun / www-data) requires read access to the application directory and write access to the temporary reports directory.

This discussion has been closed.