can't startRepetierhost -- Could not load file or assembly 'System.ServiceProcess
in Linux
Hello,
after installing RepetierHost on Linux Ubuntu 16.04 LTS x64 (and configuring with ./configure), when i launch Repetierhost, i have the following error message.
after searching for the issue it seems to be more related to windows or .Net than linux so i'm confused...
Does anyone have an idea to resolve this error ?
thanks.
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at RepetierHost.view.FormPrinterSettings.comboConnector_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b770 + 0x00181> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x001f1> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.comboPrinter_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b0d0 + 0x00083> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_Text (System.String value) <0x40c004e0 + 0x00127> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x00057> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.LoadDefaultPrinter () <0x40c086c0 + 0x00117> in <filename unknown>:0
at RepetierHost.Main..ctor () <0x40ab2440 + 0x011ca> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) RepetierHost.Main:.ctor ()
at RepetierHost.Program.Main (System.String[] args) <0x412991d0 + 0x00037> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at RepetierHost.view.FormPrinterSettings.comboConnector_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b770 + 0x00181> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x001f1> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.comboPrinter_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b0d0 + 0x00083> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_Text (System.String value) <0x40c004e0 + 0x00127> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x00057> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.LoadDefaultPrinter () <0x40c086c0 + 0x00117> in <filename unknown>:0
at RepetierHost.Main..ctor () <0x40ab2440 + 0x011ca> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) RepetierHost.Main:.ctor ()
at RepetierHost.Program.Main (System.String[] args) <0x412991d0 + 0x00037> in <filename unknown>:0
after installing RepetierHost on Linux Ubuntu 16.04 LTS x64 (and configuring with ./configure), when i launch Repetierhost, i have the following error message.
after searching for the issue it seems to be more related to windows or .Net than linux so i'm confused...
Does anyone have an idea to resolve this error ?
thanks.
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at RepetierHost.view.FormPrinterSettings.comboConnector_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b770 + 0x00181> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x001f1> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.comboPrinter_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b0d0 + 0x00083> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_Text (System.String value) <0x40c004e0 + 0x00127> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x00057> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.LoadDefaultPrinter () <0x40c086c0 + 0x00117> in <filename unknown>:0
at RepetierHost.Main..ctor () <0x40ab2440 + 0x011ca> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) RepetierHost.Main:.ctor ()
at RepetierHost.Program.Main (System.String[] args) <0x412991d0 + 0x00037> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at RepetierHost.view.FormPrinterSettings.comboConnector_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b770 + 0x00181> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x001f1> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.comboPrinter_SelectedIndexChanged (System.Object sender, System.EventArgs e) <0x40c0b0d0 + 0x00083> in <filename unknown>:0
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) <0x40bd5190 + 0x00073> in <filename unknown>:0
at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) <0x40bd4f40 + 0x00129> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_SelectedIndex (Int32 value) <0x40bd4f10 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ComboBox.set_Text (System.String value) <0x40c004e0 + 0x00127> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.load (System.String printername) <0x40c089c0 + 0x00057> in <filename unknown>:0
at RepetierHost.view.FormPrinterSettings.LoadDefaultPrinter () <0x40c086c0 + 0x00117> in <filename unknown>:0
at RepetierHost.Main..ctor () <0x40ab2440 + 0x011ca> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) RepetierHost.Main:.ctor ()
at RepetierHost.Program.Main (System.String[] args) <0x412991d0 + 0x00037> in <filename unknown>:0
Comments
The solution is what expected Repetier :
The problem is actually linked to mono packages because mono is the "Cross platform, open source .NET framework" (i discovered it). Here is the link of the project : http://www.mono-project.com/ (link placed for the sake)
The libmono-winforms1.0-cil and libmono-winforms2.0-cil packages doesn't exist (now?) for Ubuntu 16.04 LTS.
as shown here :
sudo apt-get install libmono-winforms2.0-cil
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmono-winforms2.0-cil is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mono-reference-assemblies-2.0 mono-devel
E: Package 'libmono-winforms2.0-cil' has no installation candidate
So the solution is to install the mono-reference-assemblies-2.0 AND mono-devel to get ready to use
System.Windows.Forms.
the mono-devel package is a union of some packages and i don't think we need all of them but it is safer to install it as it is.
sudo apt-get install mono-reference-assemblies-2.0 mono-devel
THANK'S A LOT !
now i can configure RepetierHost for my printer !
--------------------------
Paul18 on french ubuntu forums had perhaps a similar problem.
https://forum.ubuntu-fr.org/viewtopic.php?id=1995820
and Romaing77 on french ubuntu forums had a similar problem. by the way, the problem is explained with photos.
https://forum.ubuntu-fr.org/viewtopic.php?id=2002044