[MonoDevelop] "Could not load file or assembly" on Ubuntu
Steve Chadsey
schadsey at gmail.com
Fri Mar 24 23:40:40 UTC 2017
Ubuntu 16.04
Installed monodevelop 6.1.2 via flatpak.
I have a console application that reference System.ServiceModel. I can
successfully build and run the solution via the IDE. However, when I run
the binary from the shell, I get:
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly
'System.ServiceModel, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
or one of its dependencies.
File name: 'System.ServiceModel, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could
not load file or assembly 'System.ServiceModel, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its
dependencies.
File name: 'System.ServiceModel, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
I saw an option for the references, "Local Copy". Setting that for
System.ServiceModel and rebuilding would yield the same error, but for a
different reference (System.Xml.Linq). If I set "Local Copy" for that one,
then I get this horrible mess when running the rebuild binary from the
shell:
* Assertion at metadata.c:3643, condition `ptr' not met
Stacktrace:
Native stacktrace:
/usr/bin/cli() [0x4a77ca]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f3d5e0bb390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f3d5db00428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f3d5db0202a]
/usr/bin/cli() [0x6408d9]
/usr/bin/cli() [0x640ae7]
/usr/bin/cli() [0x640c36]
/usr/bin/cli() [0x56513e]
/usr/bin/cli() [0x4155a4]
/usr/bin/cli() [0x4600ba]
/usr/bin/cli() [0x46ad6a]
/usr/bin/cli() [0x45659a]
/usr/bin/cli() [0x504d42]
/usr/bin/cli() [0x50653f]
/usr/bin/cli() [0x425332]
/usr/bin/cli() [0x425ff9]
/usr/bin/cli(mono_runtime_invoke+0x61) [0x5b5591]
/usr/bin/cli(mono_runtime_exec_main+0xbf) [0x5b734f]
/usr/bin/cli(mono_jit_exec+0x9f) [0x478bbf]
/usr/bin/cli(mono_main+0x1230) [0x47a1e0]
/usr/bin/cli() [0x421818]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
[0x7f3d5daeb830]
/usr/bin/cli() [0x421c11]
Debug info from gdb:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted (core dumped)
I did not have these issues when using monodevelop that was installed via
the Ubuntu package manager. How do I resolve this, besides reverting to
the old version of monodevelop?
Thanks,
--
Steve Chadsey <schadsey at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/monodevelop-list/attachments/20170324/ee87a61c/attachment.html>
More information about the Monodevelop-list
mailing list