[Mono-list] App deployment failed: 'System.Core' is not present (installation-horror)

webman at manfbraun.de webman at manfbraun.de
Sat Jul 16 04:39:27 UTC 2016


Hello !

I just deployed (per copy!) an application from one debian server
to another and tried to execute it:

>
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly
'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
<

The app was previously compiled on windows and copied over to several
debian servers where ether the packet "mono-runtime" or "mono-complete"
is installed.

Now recompiled the program on linux/debian, having mono 4.2.4 (and
development
tools installed), without changing the problem.

GAC of dev-box:

System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089


GAC of problem-box:

root at hel:/ops/tools# apt-cache policy mono-runtime
mono-runtime:
  Installed: 4.4.1.0-0xamarin1
  Candidate: 4.4.1.0-0xamarin1

but NO "System.Core" in gac.


This is on debian/jessie (8.5, kernel 3.16.0), with
mono installed via instructions on the mon website.
The state of the installation result, after installing
mono-runtime:

root at hel:/ops/tools# dpkg -l *mono*
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture
Description
+++-===========================-==================-==================-======
=====================================================
ii  ca-certificates-mono        4.4.1.0-0xamarin1  all                Common
CA certificates (Mono keystore)
ii  libmono-corlib4.5-cil       4.4.1.0-0xamarin1  all                Mono
core library (for CLI 4.5)
ii  libmono-i18n-west4.0-cil    4.4.1.0-0xamarin1  all                Mono
I18N.West library (for CLI 4.0)
un  libmono-i18n4.0-all         <none>             <none>             (no
description available)
ii  libmono-i18n4.0-cil         4.4.1.0-0xamarin1  all                Mono
I18N base library (for CLI 4.0)
ii  libmono-security4.0-cil     4.4.1.0-0xamarin1  all                Mono
Security library (for CLI 4.0)
ii  libmono-system-configuratio 4.4.1.0-0xamarin1  all                Mono
System.Configuration library (for CLI 4.0)
ii  libmono-system-security4.0- 4.4.1.0-0xamarin1  all                Mono
System.Security library (for CLI 4.0)
ii  libmono-system-xml4.0-cil   4.4.1.0-0xamarin1  all                Mono
System.Xml library (for CLI 4.0)
ii  libmono-system4.0-cil       4.4.1.0-0xamarin1  all                Mono
System libraries (for CLI 4.0)
un  libmono0                    <none>             <none>             (no
description available)
un  mono-1.0-runtime            <none>             <none>             (no
description available)
un  mono-2.0-runtime            <none>             <none>             (no
description available)
ii  mono-4.0-gac                4.4.1.0-0xamarin1  all                Mono
GAC tool (for CLI 4.0)
un  mono-apache-server2         <none>             <none>             (no
description available)
un  mono-apache-server4         <none>             <none>             (no
description available)
un  mono-common                 <none>             <none>             (no
description available)
un  mono-fastcgi-server2        <none>             <none>             (no
description available)
un  mono-fastcgi-server4        <none>             <none>             (no
description available)
ii  mono-gac                    4.4.1.0-0xamarin1  all                Mono
GAC tool
un  mono-jit                    <none>             <none>             (no
description available)
ii  mono-runtime                4.4.1.0-0xamarin1  amd64              Mono
runtime - default version
ii  mono-runtime-common         4.4.1.0-0xamarin1  amd64              Mono
runtime - common files
ii  mono-runtime-sgen           4.4.1.0-0xamarin1  amd64              Mono
runtime - Sgen


But, sad to say, this is not the end of the story. I took a new box
and first installed "mono-runtime" and the problem persists. Then
I removed the "mono-runtime" and now, I am unable to install something
from mono, wether "-complete" nor "-devel" succeed with a long list
of unresolved dependecies:

root at lila:/ops/install# apt-get install -t wheezy mono-devel

The following packages have unmet dependencies:
 mono-devel : Depends: libgdiplus (>= 2.6.7) but it is not going to be
installed
              Depends: libmono-system-design4.0-cil (>= 1.0) but it is not
going to be installed
              Depends: libmono-system-drawing4.0-cil (>= 3.0.6) but it is
not going to be installed
              Depends: libmono-system-messaging4.0-cil (>= 2.10.1) but it is
not going to be installed
              Depends: libmono-system-runtime4.0-cil (>= 2.10.1) but it is
not going to be installed
              Depends: libmono-system-servicemodel-activation4.0-cil (>=
1.0) but it is not going to be installed
              Depends: libmono-system-servicemodel-web4.0-cil (>= 3.2.1) but
it is not going to be installed
              Depends: libmono-system-servicemodel4.0a-cil (>= 3.2.3) but it
is not going to be installed
              Depends: libmono-system-serviceprocess4.0-cil (>= 3.0.6) but
it is not going to be installed
              Depends: libmono-system-web-extensions4.0-cil (>= 2.10.3) but
it is not going to be installed
              Depends: libmono-system-web-services4.0-cil (>= 1.0) but it is
not going to be installed
              Depends: libmono-system-web-webpages-razor2.0-cil (>= 1.0) but
it is not going to be installed
              Depends: libmono-system-web-webpages2.0-cil (>= 1.0) but it is
not going to be installed
              Depends: libmono-system-web4.0-cil (>= 2.10.3) but it is not
going to be installed
              Depends: libmono-system-windows-forms4.0-cil (>= 1.0) but it
is not going to be installed
              Depends: libmono-cil-dev (= 4.4.1.0-0xamarin1) but it is not
going to be installed
E: Unable to correct problems, you have held broken packages.

OR:

root at lila:/ops/tools# apt-get install -t wheezy mono-complete

The following packages have unmet dependencies:
 mono-complete : Depends: mono-devel (= 4.4.1.0-0xamarin1) but it is not
going to be installed
                 Depends: mono-4.0-service (= 4.4.1.0-0xamarin1) but it is
not going to be installed
                 Depends: libmono-cil-dev (= 4.4.1.0-0xamarin1) but it is
not going to be installed
E: Unable to correct problems, you have held broken packages.

So, I am working two day, just to make a working program running!!!!!
It looks like, I have to re-install the whole computers ????????????????
>From the apt-policy-output you'll see, that a have to specify
"-t wheezy


Hope, someone can shed some light onto this. It is not possible
to install the dev-env on every box. BTW, a search in the internet
offers countless of errors of this type! Installing from debian stable
works painless. Probably the mono repository should be declared
as "highly experimental" ???

Thanks,
Manfred







More information about the Mono-list mailing list