Ubuntu 12.04 e problema de tempo de execução mono

1

Estou executando um aplicativo .net4 do meu disco usb com mono e roda bem.

Eu copio a pasta completa do aplicativo para o disco rígido (desktop) e inicio meu aplicativo com mono e recebo um erro que alguns não são encontrados ...

Eu não vejo o problema, pois ele funciona bem no meu drive USB. E eu tenho certeza que todos os arquivos são copiados, tudo em um diretório)

O texto completo do erro é:

Unhandled Exception: System.InvalidOperationException: WinForms_SeeInnerException ---> System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
File name: 'MySql.Data, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
  at System.Windows.Forms.ToolStripItem.OnTextChanged (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.set_Text (System.String value) [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.frmMain.InitializeComponent () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) Redesigned_Integration_Platform.frmMain:InitializeComponent ()
  at Redesigned_Integration_Platform.frmMain..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Redesigned_Integration_Platform.My.MyProject+MyForms.Create__Instance__[frmMain] (Redesigned_Integration_Platform.frmMain Instance) [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.My.MyProject+MyForms.get_frmMain () [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.My.MyApplication.OnCreateMainForm () [0x00000] in <filename unknown>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: WinForms_SeeInnerException ---> System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
File name: 'MySql.Data, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
  at System.Windows.Forms.ToolStripItem.OnTextChanged (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.set_Text (System.String value) [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.frmMain.InitializeComponent () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) Redesigned_Integration_Platform.frmMain:InitializeComponent ()
  at Redesigned_Integration_Platform.frmMain..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Redesigned_Integration_Platform.My.MyProject+MyForms.Create__Instance__[frmMain] (Redesigned_Integration_Platform.frmMain Instance) [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.My.MyProject+MyForms.get_frmMain () [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.My.MyApplication.OnCreateMainForm () [0x00000] in <filename unknown>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0 
  at Redesigned_Integration_Platform.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0
    
por Lsam 18.08.2013 / 16:59

1 resposta

0

Você precisa instalar o pacote mysql-connector-net:

Pacote de desenvolvimento (necessário para construir / usar o monodevelop)

sudo apt-get install libmysql-cil-dev

Pacote de tempo de execução (necessário para executá-lo) o pacote dev fará isso automaticamente

sudo apt-get install libmysql6.4-cil
    
por trampster 20.08.2013 / 00:39

Tags