[Mono-list] Fwd: Re: problem launching a self compiled application

Carlos Ble carlosble at shidix.com
Thu Sep 28 13:24:17 EDT 2006


Ok, try this:
export LD_LIBRARY_PATH=/opt/mono-1.1.17.1/lib
then run your application.
Alternative:
Add this line to your /etc/ld.so.conf file:
/opt/mono-1.1.17.1/lib
Run ldconfig and run your application again.
Regards


El jue, 28-09-2006 a las 08:22 -0700, Norbert escribió:
> Thanks, I searched for the files and I found:
> /opt/mono-1.1.17.1/etc/mono/config and
> /opt/mono-1.1.17.1/lib/libgdiplus.so.
> On my system everything related to Mono is in /opt,
> /etc does not contain anything, neither does /usr/lib.
> 
> Then I added the following line to config:
> <dllmap dll="gdiplus"
> target="/opt/mono-1.1.17.1/lib/libgdiplus.so"/>
> and tried to launch the application by this call:
> mono --config /opt/mono-1.1.17.1/etc/mono/config
> test1.exe.
> 
> But it still does not work. Must I copy the files to
> /etc or /usr/lib?
> Norbert
> 
> 
> 
> --- Carlos Ble <carlosble at shidix.com> wrote:
> 
> > Subject: Re: [Mono-list] problem launching a self
> > compiled application
> > From: Carlos Ble <carlosble at shidix.com>
> > To: Norbert <norbert_g_1 at yahoo.com>
> > CC: mono-list at lists.ximian.com
> > Date: Thu, 28 Sep 2006 13:43:09 +0100
> > 
> > Hi,
> > add this line to you /etc/mono/config:
> > <dllmap dll="gdiplus"
> > target="/usr/lib/libgdiplus.so"/>
> > 
> > greetings
> > 
> > El jue, 28-09-2006 a las 03:30 -0700, Norbert
> > escribió:
> > > Hi all,
> > > 
> > > as normal user I can compile my application
> > without
> > > any errors. It uses Windows.Forms for graphical
> > > output. But  I cannot launch it:
> > > mono test1.exe
> > > fails and reports the errors which you can find at
> > the
> > > end of this message. As root I can launch the
> > program
> > > normally and it works fine. The system I use is
> > Debian
> > > Sarge and Mono 1.1.17.1 (installed by binary
> > > installer).
> > > 
> > > Thanks in advance!
> > > Norbert
> > > 
> > > Unhandled Exception:
> > > System.TypeInitializationException: An exception
> > was
> > > thrown by the type initializer for
> > > System.Windows.Forms.Form --->
> > > System.Reflection.TargetInvocationException:
> > Exception
> > > has been thrown by the target of an invocation.
> > --->
> > > 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]
> > ---
> > > End of inner exception stack trace ---
> > > 
> > >   at <0x00000> <unknown method>
> > >   at System.Drawing.Image.InitFromStream
> > > (System.IO.Stream stream) [0x00000] 
> > >   at System.Drawing.Bitmap..ctor
> > > (System.Runtime.Serialization.SerializationInfo
> > info,
> > > StreamingContext context) [0x00000] 
> > >   at <0x00000> <unknown method>
> > >   at (wrapper managed-to-native)
> > > System.Reflection.MonoCMethod:InternalInvoke
> > > (object,object[])
> > >   at System.Reflection.MonoCMethod.Invoke
> > > (System.Object obj, BindingFlags invokeAttr,
> > > System.Reflection.Binder binder, System.Object[]
> > > parameters, System.Globalization.CultureInfo
> > culture)
> > > [0x00000] --- End of inner exception stack trace
> > ---
> > > 
> > >   at System.Reflection.MonoCMethod.Invoke
> > > (System.Object obj, BindingFlags invokeAttr,
> > > System.Reflection.Binder binder, System.Object[]
> > > parameters, System.Globalization.CultureInfo
> > culture)
> > > [0x00000] 
> > >   at System.Reflection.MethodBase.Invoke
> > > (System.Object obj, System.Object[] parameters)
> > > [0x00000] 
> > >   at
> > > System.Runtime.Serialization.ObjectRecord.LoadData
> > > (System.Runtime.Serialization.ObjectManager
> > manager,
> > > ISurrogateSelector selector, StreamingContext
> > context)
> > > [0x00000] 
> > >   at
> > >
> > System.Runtime.Serialization.ObjectManager.DoFixups
> > ()
> > > [0x00000] 
> > >   at
> > >
> >
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
> > > (System.IO.BinaryReader reader) [0x00000] 
> > >   at
> > >
> >
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
> > > (System.IO.BinaryReader reader, Boolean
> > readHeaders,
> > > System.Object result,
> > > System.Runtime.Remoting.Messaging.Header[]
> > headers)
> > > [0x00000] 
> > >   at
> > >
> >
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
> > > (System.IO.Stream serializationStream,
> > > System.Runtime.Remoting.Messaging.HeaderHandler
> > > handler) [0x00000] 
> > >   at
> > >
> >
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
> > > (System.IO.Stream serializationStream) [0x00000] 
> > >   at
> > >
> >
> System.Resources.ResourceReader.ReadNonPredefinedValue
> > > (System.Type exp_type) [0x00000] 
> > >   at System.Resources.ResourceReader.ReadValueVer1
> > > (System.Type type) [0x00000] 
> > >   at System.Resources.ResourceReader.ResourceValue
> > > (Int32 index) [0x00000] 
> > >   at
> > >
> >
> System.Resources.ResourceReader+ResourceEnumerator.get_Value
> > > () [0x00000] 
> > >   at System.Resources.ResourceSet.ReadResources ()
> > > [0x00000] 
> > >   at System.Resources.ResourceSet.GetObject
> > > (System.String name, Boolean ignoreCase) [0x00000]
> > 
> > >   at System.Resources.ResourceManager.GetObject
> > > (System.String name,
> > System.Globalization.CultureInfo
> > > culture) [0x00000] 
> > >   at System.Resources.ResourceManager.GetObject
> > > (System.String name) [0x00000] 
> > >   at System.Windows.Forms.Locale.GetResource
> > > (System.String name) [0x00000] 
> > >   at System.Windows.Forms.Form..cctor () [0x00000]
> > ---
> > > End of inner exception stack trace ---
> > > 
> > >   at <0x00000> <unknown method>
> > >   at test.test1..ctor () [0x00000] 
> > >   at (wrapper remoting-invoke-with-check)
> > > test.test1:.ctor ()
> > >   at test.m.Main () [0x00000] 
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > > http://mail.yahoo.com 
> > > _______________________________________________
> > > Mono-list maillist  -  Mono-list at lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-list
> > -- 
> > Carlos Ble      
> > www.shidix.com/carlosble
> > 
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Carlos Ble      
Shidix Technologies
www.shidix.com/carlosble




More information about the Mono-list mailing list