Can you ensure that you set the assembly to be 32bit only. The odds are you are starting a 64bit process and the Gtk binaries can only be loaded in a 32bit process.
Alan On 31 July 2012 07:58, Ian Norton <ian.norton-bad...@thales-esecurity.com> wrote: > On Tue, Jul 31, 2012 at 12:19:52PM +0100, baltasarq wrote: >> >> Dear Ian: >> >> Many, many thanks for your help. >> >> > I've downloaded testy and tried to run it on windows, it immediately >> > crashes >> > out and I get the option to load it in the vs2010 debugger. >> >> I don't have VS installed, just Monodevelop. >> >> > The exception is: >> > Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, >> > Culture=neutral, >> > PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system >> > cannot >> > find the file specified. >> > So your program depends on an assembly you've not shipped and that isn't >> > part >> > of .Net. >> >> But I haven't added any special dll, nor MonoDevelop has warned me >> about needing to distribute anything special. >> >> I have manually removed that dependency from my project, but then, in >> the generated files for the user interface, I get the following error: >> >> >> /home/baltasarq/Documents/Dropbox/prys/Testy/Testy/gtk-gui/Testy.Gui.MainWindow.cs(94,94): >> Error CS0234: The type or namespace name `Unix' does not exist in the >> namespace `Mono'. Are you missing an assembly reference? (CS0234) (Testy) >> >> In the lines that deal with the stock icons, and so on, for actions: >> >> this.saveAction = new global::Gtk.Action ("saveAction", >> global::Mono.Unix.Catalog.GetString ("_Save"), null, "gtk-save"); >> >> This is automatically generated by MonoDevelop, and I don't think I >> have... >> >> Wait a minute: now I understand. >> >> In all new projects, MonoDevelop checks the option to support Gettext, >> through the Mono.Unix class. You have to uncheck that option, and THEN >> delete "Mono.Posix" from the references list (be careful, MonoDevelop will >> add it automatically if you do in different order). >> >> Then the project builds without a glitch. I suppose that the absence >> of this reference will solve the problem. >> >> > Mono.Posix does compile for windows, It just won't do everything it does on >> > posix platforms. >> >> It actually don't really seem to be needed at all, at least for >> multiplatform desktop -tiny- applications. > > GetText is a pretty handy library, even small projects might want to localize > thier string content. > >> > Are the sources for testy public? >> >> Well, I don't care about giving away the sources, just nobody asked >> (expressed any interest) before. I've made them public in its web page. I've >> also updated the binaries. >> >> I suspect anyway that the problem has been solved. I'm longing to go >> back home in the afternoon and check it on Windows. >> >> Thank you very, very much. > > No Problem, Have Fun! > > Ian > _______________________________________________ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list