mscott161 wrote:
Gerrt,
I put the file up in a zip file for you.
http://www.ebizsoft.com/PDFSharp_on_Mono.zipLet me know if you have problems.
Michael
Thanks for the file, Michael.
I've compiled PdfSharp (which was apparently already patched) on Windows, next to the HelloWorld application. Then I moved it to the "Linux realm" and put both the exe and dll in one and the same directory.
I've also checked if there were fonts in the directory /usr/share/fonts and there were.
But when loading the application Helloworld.exe on Linux, I get the following error messages:
Code:
beq00819@lxdevenv:~/monotest$ mono HelloWorld.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v1.1.4322
** (HelloWorld.exe:6760): WARNING **: The class System.Collections.Generic.IDictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
** (HelloWorld.exe:6760): WARNING **: The class System.Collections.Generic.List`1 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
** (HelloWorld.exe:6760): WARNING **: The class System.Collections.Generic.IEnumerable`1 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
** (HelloWorld.exe:6760): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
at PdfSharp.Pdf.PdfDocument..ctor () [0x00000]
at HelloWorld.MainClass.Main (System.String[] args) [0x00000]
I have this mono version installed (on a Linux Ubuntu 8.04 LTS distro):
Code:
beq00819@lxdevenv:~/monotest$ mono --version
Mono JIT compiler version 2.4.4 (Debian 2.4.4~svn151842-1ubuntu3~dhx3)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Any idea what could cause this issue?