Bug 11498 - Windows binaries doesn't work
Summary: Windows binaries doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Deployment ()
Version: 4.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-04-01 06:21 UTC by Sven
Modified: 2013-04-04 01:05 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Sven 2013-04-01 06:21:45 UTC
Hello everybody,

I use monodevelop on Fedora 17 (KDE) and I'm facing the bug, that if I export windows binaries on fedora these binaries can't be used by Windows (I have Windows XP and Windows Vista VM and I'm also developing on Windows Vista natively on my PC). The error I get is:

System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. Das System kann die angegebene Datei nicht finden.
File name: 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
   at MainWindow.Build()
   at MainWindow..ctor(Language _objLanguage, Program _objProgram)
   at AudioCuesheetEditor.Program..ctor()
   at AudioCuesheetEditor.MainClass.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

If I build binaries directly in Windows, these binaries work (on Windows I'm running latest xamarin Studio).
Comment 1 Bojan Rajkovic [MSFT] 2013-04-01 10:15:44 UTC
You're referencing Mono.Posix, which is not available with .NET. You'll need to distribute it with your application.
Comment 2 Sven 2013-04-01 15:13:28 UTC
Sorry, but why does the same project build with xamarin studio under windows vista work? Seems to be a bug for me?! Please correct me, if I understand something wrong, but as you see, the same project can be build under windows with .net binding.
Comment 3 Mikayla Hutchinson [MSFT] 2013-04-01 18:30:04 UTC
For an explanation, see bug 1948.
Comment 4 Sven 2013-04-04 01:05:10 UTC
Thank you for the explanation. What is the recommend way for project settings, if using the project on windows and linux and building for linux and windows? On Monodevelop 4.0 (running on fedora 17) I couldn't activate "Copy locally" or "Reference specific version". I could only build the windows binary if manually referencing /usr/lib/mono/2.0/Mono.Posix.dll, then a local copy was included?!