我使用了Visual Studio 2010 + Mono 2.4 Profile。從ubuntu下運行Mono的應用程序
創建簡單winfroms應用程序。
我需要它在Ubuntu上運行。
Ubunta崩潰錯誤:
** (Client.exe:1963): WARNING **: The following assembly referenced from /usr/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll could not be loaded: Assembly: Accessibility (assemblyref_index=8) Version: 2.0.0.0 Public Key: b03f5f7f11d50a3a The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/usr/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/).
** (Client.exe:1963): WARNING **: Could not load file or assembly 'Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
** (Client.exe:1963): WARNING **: The class System.Windows.Forms.Control could not be loaded, used in System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
** (Client.exe:1963): WARNING **: The class System.Windows.Forms.Control could not be loaded, used in System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
** (Client.exe:1963): WARNING **: The class System.Windows.Forms.Control could not be loaded, used in System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
我修正了一個錯誤嗎?
[email protected]:~/Загрузки$ dpkg --get-selections | grep mono
libmono-addins-gui0.2-cil install
libmono-addins0.2-cil install
libmono-cairo2.0-cil install
libmono-corlib2.0-cil install
libmono-i18n-west2.0-cil install
libmono-management2.0-cil install
libmono-posix2.0-cil install
libmono-security2.0-cil install
libmono-sharpzip2.84-cil install
libmono-system2.0-cil install
libmono-winforms2.0-cil install
mono-2.0-gac install
mono-csharp-shell install
mono-gac install
mono-gmcs install
mono-runtime install
ubuntu-mono install
你在這裏問什麼? – Oded 2011-02-12 20:03:55