[MonoDevelop] compiled project doesnt work under win

Fabian Richter ubernapf at googlemail.com
Tue Jun 12 07:35:01 EDT 2007


Hey folks!

No idea if thats the right place to ask this questions but i searched the
whole web and couldnt find neither answers nor appropriate places to state
my questions.

I started a new gtk# project with
monodevelop. after toying around and some annoying hours i finally had
the small test programm working which i wanted to have.
it consists of a small gui, with 9 widgets and 3 events.

everything works fine under linux. now i wanted to run the programm
under win cause that was what i wanted to do in the first place,
programming plattform independent.

so i installed all i need for it(well i hope i did that) means: .NET
framework(all available versions i could find by now :() and mono with gtk#
in one package.

the thing is the exe still wont run. i tried to make the same project with
sharpdevelop but this programm is a mess, no gui editor for gtk# means no
point using it at all.

the errors i get when i start the exe in the dir, created with monodevelop
under linux(sry for german):

Unbehandelte Ausnahme: System.IO.FileLoadException: Die Manifestdefinition
'gtk-sharp' der Assembly stimmt nicht mit dem Assemblyverweis überein.
Dateiname: gtk-sharp
at zedi.MainClass.Main(String[] args)

=== Pre-bind state information ===
LOG: DisplayName = gtk-sharp, Version=2.10.0.0, Culture=neutral,
PublicKeyToken=
35e10195dab3c99f
(Fully-specified)
LOG: Appbase = C:\Dokumente und
Einstellungen\Roy\Desktop\arbeit\c#\Projects\zedi\zedi\bin\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : zedi, Version=1.0.2718.22878, Culture=neutral,
PublicKeyToken
=null.
===

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Dokumente und Einstellungen\Roy>"C:\Dokumente und
Einstellungen\Roy\Desktop\a
rbeit\c#\Projects\zedi\zedi\bin\Debug\zedi.exe"

Unbehandelte Ausnahme: System.IO.FileLoadException: Die Manifestdefinition
'gtk-
sharp' der Assembly stimmt nicht mit dem Assemblyverweis überein.
Dateiname: gtk-sharp
at zedi.MainClass.Main(String[] args)

=== Pre-bind state information ===
LOG: DisplayName = gtk-sharp, Version=2.10.0.0, Culture=neutral,
PublicKeyToken=
35e10195dab3c99f
(Fully-specified)
LOG: Appbase = C:\Dokumente und
Einstellungen\Roy\Desktop\arbeit\c#\Projects\zed
i\zedi\bin\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : zedi, Version=1.0.2718.22878, Culture=neutral,
PublicKeyToken
=null.
===

LOG: Application configuration file does not exist.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1
.1.4322\config\machine.config.
LOG: Post-policy reference: gtk-sharp, Version=2.10.0.0, Culture=neutral,
Public
KeyToken=35e10195dab3c99f
LOG: Attempting download of new URL file:///C:/Dokumente und
Einstellungen/Roy/D
esktop/arbeit/c#/Projects/zedi/zedi/bin/Debug/gtk-sharp.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Major Version


C:\Dokumente und Einstellungen\Roy>"C:\Dokumente und
Einstellungen\Roy\Desktop\a
rbeit\c#\Projects\zedi\zedi\bin\Debug\zedi.exe"

Unbehandelte Ausnahme: System.IO.FileLoadException: Die Manifestdefinition
'gtk-
sharp' der Assembly stimmt nicht mit dem Assemblyverweis überein.
Dateiname: gtk-sharp
at zedi.MainClass.Main(String[] args)

=== Pre-bind state information ===
LOG: DisplayName = gtk-sharp, Version=2.10.0.0, Culture=neutral,
PublicKeyToken=
35e10195dab3c99f
(Fully-specified)
LOG: Appbase = C:\Dokumente und
Einstellungen\Roy\Desktop\arbeit\c#\Projects\zed
i\zedi\bin\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : zedi, Version=1.0.2718.22878, Culture=neutral,
PublicKeyToken
=null.
===

LOG: Application configuration file does not exist.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: gtk-sharp, Version=2.10.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f
LOG: Attempting download of new URL file:///C:/Dokumente und
Einstellungen/Roy/Desktop/arbeit/c#/Projects/zedi/zedi/bin/Debug/gtk-
sharp.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Major Version

i think the last line says where my problem is but i dont know how to solve
it.

is 2.10 the version i have installed? cause i thought i had 2.8.3 with that
one mono-1.2.4-gtksharp-2.8.3-win32-3.exe installed.

whats wrong? is it even possible to run a mono exe compiled under lin that
easily?

thanks for your replies!

greetings
Fabian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070612/4cdb243a/attachment-0001.html 


More information about the Monodevelop-list mailing list