Page 1 of 1

Error installing on Linux

Posted: Sat 23 May 2015 12:14 am
by JohnN
I'm trying to install MX, but I keep getting an error.

Code: Select all

john@john-Dell-DXP051:~$ cd /home/john/CumulusMX
john@john-Dell-DXP051:~/CumulusMX$ sudo mono CumulusMX.exe
[sudo] password for john: 
Current culture: English (United States)
System.TypeInitializationException: An exception was thrown by the type initializer for CumulusMX.Cumulus ---> System.TypeLoadException: Could not load type 'System.Net.Http.HttpClientHandler' from assembly 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
  --- End of inner exception stack trace ---
  at .Main (System.String[] args) [0x00000] in <filename unknown>:0 
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate
I'm running Zorin OS 9 64 bit. I don't see any reason to attach the MXDiags folder, since it is empty. Let me know if there is any other information I need to post to help diagnose this error.

Re: Error installing on Linux

Posted: Sat 23 May 2015 8:45 am
by steve
It can't find the file System.Net.Http.dll, or at least the version that it's expecting. The assembly is provided as part of the distribution, so I don't know why it isn't finding it. Perhaps it is loading another version because it's before it on the search path, but I believe it should first look in the current directory. I've just tried a fresh install of 3025 on my Pi, and it runs without that error. What version of mono is installed on your system (do 'mono --version')?

Re: Error installing on Linux

Posted: Sat 23 May 2015 9:23 am
by steve
As an experiment, I deleted the System.net.Http.dll file from my Pi install - and it still runs without error. Perhaps the version I am bundling is not actually the required version, but there hasn't been a problem so far because everyone has that assembly installed as part of mono (it's a system assembly, as indicated by the name). Did you install Mono just for MX, or did you already have it installed? What package(s) did you install? What output do you get from 'gacutil -l System.Net.Http'?

Re: Error installing on Linux

Posted: Sat 23 May 2015 8:10 pm
by JohnN
This is what I get for Mono version:

Code: Select all

Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen
As far as I know, Mono was already installed. When I looked for it in the software center, it was shown as installed, and I don't remember installing it previously. For gacutil -l System.Net.Http I get

Code: Select all

john@john-Dell-DXP051:~$ gacutil -l System.Net.Http
The following assemblies are installed into the GAC:
Number of items = 0
Let me know if you need anything else.

Re: Error installing on Linux

Posted: Sun 24 May 2015 8:28 am
by steve
JohnN wrote:For gacutil -l System.Net.Http I get

Code: Select all

john@john-Dell-DXP051:~$ gacutil -l System.Net.Http
The following assemblies are installed into the GAC:
Number of items = 0
Let me know if you need anything else.
This is the problem, you apparently do not have the required Mono system assemblies on your system. You need to install the 'mono-complete' package, assuming one exists for the Linux distribution you are using. This should install the required assemblies.

Re: Error installing on Linux

Posted: Sun 24 May 2015 4:13 pm
by JohnN
I think I found what I needed in the software center. I'll install it and get back to you with an update.

Re: Error installing on Linux

Posted: Sun 24 May 2015 6:07 pm
by JohnN
I found the mono-complete package in the software center, installed it, and now Cumulus seems to be running fine. Thanks for the help.