xsp source install missing files CentOS - mono

I installed xsp from source but get this error when testing
$ xsp4 --port 9000
Handling exception type FileNotFoundException
Message is Could not load file or assembly 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies
IsTerminating is set to True
Could not load file or assembly 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies
at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) <0x41cf8ca0 + 0x00ba4> in <filename unknown>:0
at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) <0x41cf7ce0 + 0x000b7> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) <0x41c98770 + 0x0084f> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) <0x41c981a0 + 0x00117> in <filename unknown>:0
at Mono.WebServer.XSP.Server.Main (System.String[] args) <0x41c97d50 + 0x00027> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies
File name: 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) <0x41cf8ca0 + 0x00ba4> in <filename unknown>:0
at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) <0x41cf7ce0 + 0x000b7> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) <0x41c98770 + 0x0084f> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) <0x41c981a0 + 0x00117> in <filename unknown>:0
at Mono.WebServer.XSP.Server.Main (System.String[] args) <0x41c97d50 + 0x00027> in <filename unknown>:0
So I did the recommended strace to get more info:
$ strace -e trace=open xsp4
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
open("/usr/local/bin/xsp4", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/local/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/bin/mono", O_RDONLY) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/etc/mono/config", O_RDONLY) = 3
open("/home/ultron/.mono/config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/shm/mono.4290", O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW|O_CLOEXEC, 0640) = 3
open("/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
open("/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
open("/usr/local/lib/mono/4.5/xsp4.exe.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/4.5/xsp4.exe", O_RDONLY) = 3
open("/usr/lib/mono/4.5/mscorlib.dll", O_RDONLY) = 3
open("/usr/lib/mono/4.5/mscorlib.dll.so", O_RDONLY|O_CLOEXEC) = 3
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.4.0.mscorlib/0.0.0.0__b77a5c561934e089/policy.4.0.mscorlib.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/4.5/mscorlib.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/mscorlib/mscorlib.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
open("/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
open("/proc/self/task/4292/comm", O_RDWR) = 3
open("/dev/null", O_RDWR) = 3
open("/usr/local/lib/mono/4.5/xsp4.exe", O_RDONLY) = 3
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/xsp4.exe.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/xsp4.exe.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/xsp4/xsp4.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/4.5/xsp4.exe", O_RDONLY) = 3
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/xsp4.exe.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/xsp4.exe.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.0.4.Mono.WebServer2/0.0.0.0__0738eb9f132ed756/policy.0.4.Mono.WebServer2.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/4.5/Mono.WebServer2.dll", O_RDONLY) = 3
open("/usr/local/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/Mono.WebServer2.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/Mono.WebServer2.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/Mono.WebServer2/Mono.WebServer2.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.4.0.Mono.Security/0.0.0.0__0738eb9f132ed756/policy.4.0.Mono.Security.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll", O_RDONLY) = 3
open("/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/Mono.Security.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/Mono.Security.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/Mono.Security/Mono.Security.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.4.0.System/0.0.0.0__b77a5c561934e089/policy.4.0.System.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll", O_RDONLY) = 3
open("/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/System/System.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.4.0.System.Core/0.0.0.0__b77a5c561934e089/policy.4.0.System.Core.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll", O_RDONLY) = 3
open("/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Core.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Core.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/System.Core/System.Core.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.4.0.System.Configuration/0.0.0.0__b03f5f7f11d50a3a/policy.4.0.System.Configuration.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll", O_RDONLY) = 3
open("/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Configuration.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Configuration.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/System.Configuration/System.Configuration.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.4.0.System.Xml/0.0.0.0__b77a5c561934e089/policy.4.0.System.Xml.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll", O_RDONLY) = 3
open("/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Xml.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Xml.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/System.Xml/System.Xml.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/4.5/machine.config", O_RDONLY) = 3
open("/proc/uptime", O_RDONLY) = 4
open("/etc/mono/4.5/machine.config", O_RDONLY) = 3
open("/dev/urandom", O_RDONLY) = 3
open("/usr/lib/mono/gac/policy.4.0.System.Web/0.0.0.0__b03f5f7f11d50a3a/policy.4.0.System.Web.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll", O_RDONLY) = 4
open("/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Web.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Web.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/System.Web/System.Web.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/ultron/web.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/4.5/machine.config", O_RDONLY) = 4
open("/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/Mono.Security.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/Mono.Security.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe", O_RDONLY) = 4
open("/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Web.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Web.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Configuration.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Configuration.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Core.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/aot-cache/amd64/System.Core.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/4.5/machine.config", O_RDONLY) = 5
open("/etc/mono/4.5/machine.config", O_RDONLY) = 6
open("/etc/mono/4.5/web.config", O_RDONLY) = 6
open("/etc/mono/4.5/web.config", O_RDONLY) = 5
open("/etc/mono/4.5/settings.map", O_RDONLY) = 5
open("/home/ultron/web.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/policy.4.2.xsp4/0.0.0.0__0738eb9f132ed756/policy.4.2.xsp4.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/xsp4.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/4.5//Facades/xsp4.dll", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/gac/xsp4/4.2.0.0__0738eb9f132ed756/xsp4.exe", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/xsp4.exe", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/4.5//Facades/xsp4.exe", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/4.5/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/4.5/libc.so.6.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/4.5/libc.so.6.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/mono/4.5/libc.so.6.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/localtime", O_RDONLY) = 5
open("/usr/share/terminfo/x/xterm", O_RDONLY) = 5
Handling exception type FileNotFoundException
Message is Could not load file or assembly 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies
IsTerminating is set to True
Could not load file or assembly 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies
at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) <0x40c874b0 + 0x00ba4> in <filename unknown>:0
at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) <0x40c864f0 + 0x000b7> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) <0x40c2d770 + 0x0084f> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) <0x40c2d1a0 + 0x00117> in <filename unknown>:0
at Mono.WebServer.XSP.Server.Main (System.String[] args) <0x40c2cd50 + 0x00027> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies
File name: 'xsp4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) <0x40c874b0 + 0x00ba4> in <filename unknown>:0
at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) <0x40c864f0 + 0x000b7> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) <0x40c2d770 + 0x0084f> in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) <0x40c2d1a0 + 0x00117> in <filename unknown>:0
at Mono.WebServer.XSP.Server.Main (System.String[] args) <0x40c2cd50 + 0x00027> in <filename unknown>:0
+++ exited with 0 +++
But I don't understand the source of all these missing files problems.
Previously I'd tried the path described in mono-project.com with using yum and module mono-xsp4 but had
the same error upon testing. So used yum to uninstall that module and tried the source install method instead.
Has anyone installed this version of the sources on CentOS 7?
I used these instructions for the source install:
gist.github
Using CentOS Linux release 7.2.1511 (Core) with
GCC version 5.4.0
$ mono --version
Mono JIT compiler version 4.4.2 (Stable 4.4.2.11/f72fe45 Fri Jul 29 09:49:37 UTC 2016)
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

I had a similar problem a few days ago. You're running XSP4 from the command line, and that is just a driver program. It needs to find the DLL, Mono.WebServer.dll.
That DLL needs to be in the GAC, or you need to use MONO_PATH=. assuning the DLL is in the same folder.
See
https://linux.die.net/man/1/mono

Related

Unable to delete files with full permissions

I coded a simple function that deletes all files in a directory. All files in my directory (including the directory) have full permission for all users but my function doesn't work and I receive this error: "Access to the path is denied."
Very important: This error appears only for the file that I have copied manually from another dir, instead for that files that my program creates and saves, there is no error.
This is my function:
Private Sub DeleteFile(ByVal Folder As IO.DirectoryInfo)
Dim _fl As IO.FileInfo
For Each _fl In Folder.GetFiles
_fl.Delete()
Next
_fl = Nothing
End Sub

Zip new file in VB: File is being used by another procces

Hi folks I'm trying to zip file from a path to another path using ZipArchive and ZipFile but I can't achieve it.
zipped = "C:\Images\zip\file01.ZIP"
file = "C:\Images\file01.BAK"
Using newFile As ZipArchive = ZipFile.Open(zipped, ZipArchiveMode.Create)
newFile.CreateEntryFromFile(zipped, file, CompressionLevel.Optimal)
End Using
I'm getting the error: "C:\Images\zip\file01.ZIP" File is being used by another proccess
I will appreciate the help
Try archive mode Update instead of Create for a new entry in a zip archive from an existing file
zipped = "C:\Images\zip\file01.ZIP"
file = "C:\Images\file01.BAK"
Using newFile As ZipArchive = ZipFile.Open(zipped, ZipArchiveMode.Update)
newFile.CreateEntryFromFile(zipped, file, CompressionLevel.Optimal)
End Using

VBA file = Dir() retrieving a gibberish filename

Block of code handling looping through files in a directory:
Dim file As Variant
file = Dir(directory)
While (file <> "")
If (InStr(file, ".xlsx") > 0) And (InStr(file, "Percentage") = 0) And (InStr(file, aggregateFilename) = 0) Then
Call fight_dynamics_by_percentage_buckets(aggregateFilename, directory, file, folderToRunMacro, num_buckets)
End If
file = Dir
Wend
Earlier in my code, the user selects a directory storing a set of files. In my test directory, I have the following files:
Analyzed.11.14.383.Chamber1.xlsx
Analyzed.11.14.383.Chamber2.xlsx
Analyzed.11.14.383.Chamber3.xlsx
When I run the macro, the program extracts the filenames as:
Analyzed.11.14.383#494E5A0.xlsx
Analyzed.11.14.383#494E5A1.xlsx
Analyzed.11.14.383#494E5A2.xlsx
I have used this exact code before on previous directories, and have had no trouble extracting the correct filenames.
What's going on here?
I do not see any issue with your code and it is working fine for me as well. It may be a specific system of excel issue. You can use another option to get the same result and here are the codes for your reference. Have a good day
Set filesys = CreateObject("Scripting.FileSystemObject")
For Each sfile In filesys.GetFolder(directory).Files
file = filesys.GetFileName(sfile)
If (InStr(file, ".xlsx") > 0) And (InStr(file, "Percentage") = 0) And (InStr(file, aggregateFilename) = 0) Then
Call fight_dynamics_by_percentage_buckets(aggregateFilename, directory, file, folderToRunMacro, num_buckets)
End If
Next

ProgramData. Access denied (VB.NET 2008)

I am storing .dat files in ProgramData to write and read configurations about my software. I can read, but I can't write. These .dat files are copied when software is installed. The installer has been created with AwInstall.
CODE TO WRITE .DAT:
If File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) & "\NameSoftware\Configuration\paramsBiz.dat") = True Then
Dim sw As StreamWriter = New StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) & "\NameSoftware\Configuration\paramsBiz.dat")
sw.Write(myString)
sw.Close()
sw = Nothing
Return True
Else
Return False
End If
ERROR:
I am getting this error:
System.UnauthorizedAccessException: Acceso denegado a la ruta de acceso 'C:\ProgramData\NameSoftware\Configuration\paramsBiz.dat'.
en System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
en System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
en System.IO.StreamWriter.CreateFile(String path, Boolean append)
en System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
en System.IO.StreamWriter..ctor(String path)
UPDATE 1:
ok, is a problem with this directory ProgramData, as has been said Hans Passant
But alternative path could be used to store data and that any user (admin or not) can read and write these files?

Why does "Inherits Microsoft.Web.Services2.WebServicesClientProtocol" kill build

I'm trying to write an Outlook add-in in Visual Basic (in Visual Studio 2012 Professional on Windows 7) that will interface with a web service we use at work. Unfortunately this particular web service doesn't really stay with the times and as such, requires the Web Reference to implement Microsoft.Web.Services2.WebServicesClientProtocol to do certain things. When I change the generated Reference.vb to inherit this class instead of the default and Rebuild All, the build fails with the message:
------ Rebuild All started: Project: OutlookAddIn1, Configuration: Debug Any CPU ------
OutlookAddIn1 -> \\nas01\my-home$\chq-andrewt\Visual Studio 2012\Projects\OutlookAddIn1\OutlookAddIn1\bin\Debug\OutlookAddIn1.dll
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: The "FindRibbons" task failed unexpectedly.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'OutlookAddIn1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: File name: 'OutlookAddIn1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at System.Reflection.Assembly.Load(String assemblyString)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at System.UnitySerializationHolder.GetRealObject(StreamingContext context)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at Microsoft.Build.Framework.ITask.Execute()
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext()
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: === Pre-bind state information ===
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: DisplayName = OutlookAddIn1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: (Fully-specified)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE/
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: Initial PrivatePath = NULL
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: Calling assembly : (Unknown).
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: ===
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: This bind starts in default load context.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: Using application configuration file: C:\Users\chq-andrewt\AppData\Local\Microsoft\VisualStudio\11.0\devenv.exe.config
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: Using host configuration file:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: LOG: The same bind was seen before, and was failed with hr = 0x80070002.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018:
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
I've found that the crash doesn't happen because of the change to Reference.vb specifically. I can consistently reproduce this if I create a new Outlook 2013 Add-In project, create a new class, and have it inherit Microsoft.Web.Services2.WebServicesClientProtocol:
Public Class Class1
Inherits Microsoft.Web.Services2.WebServicesClientProtocol
End Class
Once I make that change, I add Microsoft.Web.Services2.dll to the project References and after some prompting, System.Web.Services.dll. I rebuild all and promptly get the above error.
I've found that if I use Microsoft.Web.Services3.WebServicesClientProtocol instead, it works fine.
This is my first Visual Basic project (and any project using Microsoft tools, for that matter), so I may be missing something painfully obvious. The choice to use this web service (and WSE2 by extension) wasn't my choice; I'm trying to interface with something others have already purchased.
I've reinstalled Visual Studio with no luck.
Any hints on why this is happening or how to troubleshoot this a bit more? Thanks in advance!
It turns out that WSE 2 is simply too old. It only supports the .NET framework up to version 2, which is I think why it was tanking. I'm using 4.5 (could only go as low as 4) since I was writing an Outlook 2013 add-in. Since there isn't any built-in functionality for doing SOAP attachments AT ALL, I ended up POSTing the raw SOAP message by hand as it was a free solution and pretty straightforward.
No comment on how resilient and future-proof it is...
Public Shared Sub createAttachment(uploadPath As String, fileName As String, ticketHandle As String, description As String)
Dim fInfo As New FileInfo(uploadPath)
Dim numBytes As Long = fInfo.Length
Dim fStream As New FileStream(uploadPath, FileMode.Open, FileAccess.Read)
Dim br As New BinaryReader(fStream)
Dim data As Byte() = br.ReadBytes(CInt(numBytes))
br.Close()
fStream.Close()
Dim boundary As String = "Part_3_4083017.1413597427118"
' Set the 'Method' property of the 'Webrequest' to 'POST'.
Dim myHttpWebRequest As HttpWebRequest = CType(WebRequest.Create("http://soapserver:8080/axis/services/USD_R11_WebService"), HttpWebRequest)
myHttpWebRequest.Method = "POST"
myHttpWebRequest.UserAgent = "Jakarta Commons-HttpClient/3.1"
myHttpWebRequest.Host = "soapserver:8080"
myHttpWebRequest.ContentType = "multipart/related; type=""text/xml""; start=""<rootpart#soapui.org>""; boundary=""----=_" & boundary & """"
Dim myWebHeaderCollection As WebHeaderCollection = myHttpWebRequest.Headers
myWebHeaderCollection.Add("MIME-Version: 1.0")
myWebHeaderCollection.Add("Accept-Encoding: gzip,deflate")
myWebHeaderCollection.Add("SOAPAction:""""")
'myWebHeaderCollection.Add("Expect:100-continue")
Dim inputData As String = Console.ReadLine()
Dim postData As New StringBuilder()
postData.Append("------=_" & boundary & vbCrLf)
postData.Append("Content-Type: text/xml; charset=UTF-8" & vbCrLf)
postData.Append("Content-Transfer-Encoding: 8bit" & vbCrLf)
postData.Append("Content-ID: <rootpart#soapui.org>" & vbCrLf)
postData.Append("" & vbCrLf)
postData.Append("<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ser=""http://www.vendorurl.com/TheirProduct"">")
postData.Append("<soapenv:Header/>")
postData.Append("<soapenv:Body>")
postData.Append("<ser:createAttachment>")
postData.Append("<sid>" & sid & "</sid>")
postData.Append("<repositoryHandle>" & getRepositoryHandle() & "</repositoryHandle>")
postData.Append("<objectHandle>" & ticketHandle & "</objectHandle>")
postData.Append("<description>" & description & "</description>")
postData.Append("<fileName>" & uploadPath & "</fileName>")
postData.Append("</ser:createAttachment>")
postData.Append("</soapenv:Body>")
postData.Append("</soapenv:Envelope>" & vbCrLf)
postData.Append("------=_" & boundary & vbCrLf)
postData.Append("Content-Type: image/x-png; name=" & fileName & vbCrLf)
postData.Append("Content-Transfer-Encoding: binary" & vbCrLf)
postData.Append("Content-ID: <" & fileName & ">" & vbCrLf)
postData.Append("Content-Disposition: attachment; name=""" & fileName & """; filename=""" & fileName & """" & vbCrLf)
postData.Append("" & vbCrLf)
Dim encoding As New UTF8Encoding()
Dim header As Byte() = encoding.GetBytes(postData.ToString)
Dim tail As Byte() = encoding.GetBytes(vbCrLf & "------=_" & boundary & "--")
myHttpWebRequest.ContentLength = header.Length + data.Length + tail.Length
Dim newStream As Stream = myHttpWebRequest.GetRequestStream()
newStream.Write(header, 0, header.Length)
newStream.Write(data, 0, data.Length)
newStream.Write(tail, 0, tail.Length)
newStream.Close()
Try
Dim response = myHttpWebRequest.GetResponse()
Dim s As Stream = response.GetResponseStream()
Dim sr As New StreamReader(s)
Dim Content As String = sr.ReadToEnd()
'Could parse Content to get the handler for our new attachment
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub