|
Hi,
I'm using windows7 64bit. I have installed Monodevelop 2.2beta1. When try to run/debug a GTK# appplication, it gives following exception. System.TypeInitializationException was unhandled Message="The type initializer for 'Gtk.Application' threw an exception." Source="gtk-sharp" TypeName="Gtk.Application" StackTrace: at Gtk.Application.Init() at ColorManager.MainClass.Main(String[] args) in f:\Sharique\Projects\ColorManager\ColorManager\Main.cs:line 10 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: System.BadImageFormatException Message="An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" Source="glib-sharp" StackTrace: at GLib.Thread.glibsharp_g_thread_supported() at GLib.Thread.get_Supported() at Gtk.Application..cctor() InnerException: -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) http://safknw.blogspot.com/ "Peace" is the Ultimate thing we want. _______________________________________________ Monodevelop-list mailing list [hidden email] http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
Your trying to load 32bit assemblies into a 64bit app.
You can change your app to force an x86 platform target as a workaround. I don't believe there are 64bit GTK# assemblies for windows yet. Sharique uddin Ahmed Farooqui wrote: > Hi, > > I'm using windows7 64bit. I have installed Monodevelop 2.2beta1. When > try to run/debug a GTK# appplication, it gives following exception. > > System.TypeInitializationException was unhandled > Message="The type initializer for 'Gtk.Application' threw an exception." > Source="gtk-sharp" > TypeName="Gtk.Application" > StackTrace: > at Gtk.Application.Init() > at ColorManager.MainClass.Main(String[] args) in > f:\Sharique\Projects\ColorManager\ColorManager\Main.cs:line 10 > at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) > at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > at System.Threading.ExecutionContext.Run(ExecutionContext > executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart() > InnerException: System.BadImageFormatException > Message="An attempt was made to load a program with an > incorrect format. (Exception from HRESULT: 0x8007000B)" > Source="glib-sharp" > StackTrace: > at GLib.Thread.glibsharp_g_thread_supported() > at GLib.Thread.get_Supported() > at Gtk.Application..cctor() > InnerException: > > Monodevelop-list mailing list [hidden email] http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
How ca n I do that? I did not find it project options.
On 10/5/09, James P Michels III <[hidden email]> wrote: > Your trying to load 32bit assemblies into a 64bit app. > > You can change your app to force an x86 platform target as a workaround. > > I don't believe there are 64bit GTK# assemblies for windows yet. > > Sharique uddin Ahmed Farooqui wrote: >> Hi, >> >> I'm using windows7 64bit. I have installed Monodevelop 2.2beta1. When >> try to run/debug a GTK# appplication, it gives following exception. >> >> System.TypeInitializationException was unhandled >> Message="The type initializer for 'Gtk.Application' threw an exception." >> Source="gtk-sharp" >> TypeName="Gtk.Application" >> StackTrace: >> at Gtk.Application.Init() >> at ColorManager.MainClass.Main(String[] args) in >> f:\Sharique\Projects\ColorManager\ColorManager\Main.cs:line 10 >> at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] >> args) >> at >> Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() >> at System.Threading.ExecutionContext.Run(ExecutionContext >> executionContext, ContextCallback callback, Object state) >> at System.Threading.ThreadHelper.ThreadStart() >> InnerException: System.BadImageFormatException >> Message="An attempt was made to load a program with an >> incorrect format. (Exception from HRESULT: 0x8007000B)" >> Source="glib-sharp" >> StackTrace: >> at GLib.Thread.glibsharp_g_thread_supported() >> at GLib.Thread.get_Supported() >> at Gtk.Application..cctor() >> InnerException: >> >> > _______________________________________________ > Monodevelop-list mailing list > [hidden email] > http://lists.ximian.com/mailman/listinfo/monodevelop-list > -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) http://safknw.blogspot.com/ "Peace" is the Ultimate thing we want. _______________________________________________ Monodevelop-list mailing list [hidden email] http://lists.ximian.com/mailman/listinfo/monodevelop-list |
| Powered by Nabble | See how NAML generates this page |
