Want to practice with some Microsoft specific tools; specifically winsock2.h. I know Mono can be used to make C# programs, but before doing the install I hope to find out if it does more than that. Answer For APIs like winsock2.h, you’re talking about the direct win32 API and related libraries. Mono/C# provides higher-level networking APIs via the language run-time
Tag: mono
Check architecture for Linux and Mac
I’m trying to get the architecture of the computer executing my software, and so far it is working nice on Windows, but it fails on Linux and OSX. Let me show my current code: Linux and Mac always return “Processor is 32-bit”, so I guess that those environment variables are unused outside Windows. I’ve been googling for a couple of
Mono executes program with wrong current directory
I have a strange problem. I have written a custom spamfilter in C# .NET 4.6 for personal use. And I put this program up to my Raspberry Pi. I have tested many times the program, and everything worked fine, but when I created a cronjob I have noticed that the program never writes log. As I started to test again
How to install mono 3 on Debian testing?
I want to compile the Unreal Engine on my Debian Liunx (testing) box, which needs the mono package libmono-corlib4.0-cil installed that depends on the mono-runtime in version 3. However, on my Debian box I have installed mono in version 4 and libmono-corlib4.5-cil (4.5 instead of 4.0). So I tried to install that specific version via However, that gives me: libmono-corlib4.0-cil
Could not load type ‘System.Net.Security.SslStream’
I’ve this simple C# program: and I compile it with mono (mcs): when I execute, an error thrown: My Npgsql.dll version My compiler: Finally, my environment: Thank you Answer I have one question – do you have library Mono.Security.dll inside bin folder? If so, please delete it and try again.
Mono and Array.Sort
How can I use Array.Sort(someArray) in Mono with the Monodevelop !? I’m using Mono 4.2.2 and Monodevelop 5.10. Did I has to import some namespace? Which one? Is there another method to use? I’ve been trying that and don’t works: Answer Array is in the System namespace and is included within mscorlib (Mono/.Net 2/4/4.5+). Using: Cut/Paste example: Output:
mod_mono asp MVC4 error: System.Security.SecurityException – Couldn’t impersonate token
I have developed an small webapp in ASP.net MVC4, framework version 4.5. It all works like a charm when debugging with Visual Studio 2015. However I do not have an Windows server, but a Linux (Ubuntu 14.04 VPS) and I wish to deploy there. I have latest mono and mod_mono running with apache2. It seems to execute as it should,
running bash piped comand from mono linux
I am trying to run bash command with pipe using mono process start here is code snippet I am trying single commands works, however pipe commands fails to run, what am I missing here ? I tried running “ps -aux” which runs fine. However ps -aux | grep gnome command failed. I tried these scenarios scenario 1: command = ps
mono on debian: Could not find file “/srv/www/proj/binroslyncsc.exe”
I try to deploy a ASP NET 4.5 Website written in Visual Studio to a Mono Server. System.IO.FileNotFoundException Could not find file “/srv/www/proj/binroslyncsc.exe”. Description: HTTP 500.Error processing request. What am I doing wrong? Answer Finally I managed it to work. For those, who are searching for a similar solution: In my Apache vHost Configuration I need to add That directive
Use of MONO_IOMAP to cope with a hard-coded file path?
I’m trying to get a Windows .NET binary to run under Linux using Mono. The app runs fine on Windows. It presently fails under Mono because it can’t find a file with a hard-coded path. For testing, I’m using a Fedora 23 VirtualBox VM running under Windows 7. All the files are present on the VM’s FS (no shares with