Use o Mono para executar um software que precisa do Microsoft .NET Framework 4

1

Estou usando o Lubuntu 14.04 e gostaria de executar um software que precisa do Microsoft .NET Framework 4. Portanto, instalei o Mono e seus pacotes (mono-devel, mono-completo, referenceassemblies-pcl, ca-certificates- mono, mono-xsp4). Eu também instalei o Visual Basic 10.0.

No entanto, quando tento executar o software com "sudo mono myProgram.exe". Meu console envia a seguinte mensagem:

Unhandled Exception:
System.InvalidOperationException: WinForms_SeeInnerException ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Microsoft.VisualBasic.Interaction.GetSetting (System.String AppName, System.String Section, System.String Key, System.String Default) [0x00041] in <052f159205d44babb4f17a8e3eeca1f7>:0 
  at WindowsApplication1.Luncher..ctor () [0x00059] in <f204b55308eb41d3acb7c261ef634837>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at WindowsApplication1.My.MyProject+MyForms.Create__Instance__[T] (T Instance) [0x000ea] in <f204b55308eb41d3acb7c261ef634837>:0 
  at WindowsApplication1.My.MyProject+MyForms.get_Luncher () [0x00000] in <f204b55308eb41d3acb7c261ef634837>:0 
  at WindowsApplication1.My.MyApplication.OnCreateMainForm () [0x00007] in <f204b55308eb41d3acb7c261ef634837>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00010] in <052f159205d44babb4f17a8e3eeca1f7>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00001] in <052f159205d44babb4f17a8e3eeca1f7>:0 
  at WindowsApplication1.My.MyApplication.Main (System.String[] Args) [0x00017] in <f204b55308eb41d3acb7c261ef634837>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: WinForms_SeeInnerException ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Microsoft.VisualBasic.Interaction.GetSetting (System.String AppName, System.String Section, System.String Key, System.String Default) [0x00041] in <052f159205d44babb4f17a8e3eeca1f7>:0 
  at WindowsApplication1.Luncher..ctor () [0x00059] in <f204b55308eb41d3acb7c261ef634837>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at WindowsApplication1.My.MyProject+MyForms.Create__Instance__[T] (T Instance) [0x000ea] in <f204b55308eb41d3acb7c261ef634837>:0 
  at WindowsApplication1.My.MyProject+MyForms.get_Luncher () [0x00000] in <f204b55308eb41d3acb7c261ef634837>:0 
  at WindowsApplication1.My.MyApplication.OnCreateMainForm () [0x00007] in <f204b55308eb41d3acb7c261ef634837>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00010] in <052f159205d44babb4f17a8e3eeca1f7>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00001] in <052f159205d44babb4f17a8e3eeca1f7>:0 
  at WindowsApplication1.My.MyApplication.Main (System.String[] Args) [0x00017] in <f204b55308eb41d3acb7c261ef634837>:0

Espero que você possa me ajudar a resolver esse problema. Agradecemos antecipadamente por sua ajuda:)

    
por titi157 03.12.2016 / 14:04

0 respostas