Mono is an open-source, cross-platform implementation of the .NET platform.
Questions tagged [mono]
60 questions
43
votes
4 answers
Is it possible to run .NET code on the Pi using mono?
Is it possible (and feasible) to run .NET applications on the Raspberry Pi with Mono?
If so, how well do they run? Is a basic GUI usable, or does poor performance realistically restrict it to command line applications?
berry120
- 10,984
- 11
- 53
- 63
7
votes
2 answers
The assembly mscorlib.dll was not found or could not be loaded - what gives?
Using the Raspbian Wheezy image...
I installed the mono runtime like so on my Raspberry PI:
sudo apt-get update
sudo apt-get install mono-runtime
and it seemed to install fine (If I run mono I get a sensible command output).
Then I started…
kmp
- 257
- 1
- 4
- 12
7
votes
3 answers
How to prevent Raspberry Pi memory allocation failure?
I have installed a Terraria server on my Raspberry Pi (Version B Revision 2) yesterday. I followed this tutorial on Reddit.
I used the latest version of Raspbian provided by NOOBS:
I just installed mono-complete instead of just the runtime
I also…
Subject
- 83
- 1
- 1
- 6
6
votes
2 answers
Virtual UART ports
I want to use a Rpi to interface with 3 atmega ics in an embedded system but the pi seems to only have one uart port. I know arduino can emulate a serial connection over two io pins, will this be possible on a pi? I plan on using a headless raspbian…
Gerharddc
- 307
- 1
- 5
- 12
5
votes
1 answer
How can I run a terminal command (bash) from C#/Mono?
I've got an asp.net mvc website up and running great on the pi, and I'm even blinking an led - however, I would like to take a picture from the site using the raspberry pi camera board. I am attempting to use the following code:
Process proc = new…
Steve French
- 209
- 1
- 3
- 14
5
votes
2 answers
Is there a way to get SoundPlayer to work or is there an alternative?
I am using the Raspbian “wheezy” image and I copied over a wav file and played it successfully doing:
aplay test.wav
So then I knocked up this little console application:
using System;
using System.Media;
using System.IO;
namespace…
kmp
- 257
- 1
- 4
- 12
4
votes
1 answer
Play sound with mono c# doesn't work on Raspbian
I try to play a sound from a Raspberry Pi 3 with Raspbian installed. I have mono installed. I tested it on Windows, and it runs well. But when running it on Raspbian. I don't get any error message and no sound either.
public void PlaySound()
{
…
Sven Borden
- 171
- 4
3
votes
2 answers
How to correctly (error free) install Mono 5 on Raspberry Pi 3 Raspbian Stretch Lite (latest)
I have an application which needs Mono 5 to start properly, since my current version (4.6.2.7+dfsg-1) does not work with it. Also 4.6.2.7+dfsg-1 seems to be the only version I can get installed.
Can somebody help me out with simple commands to…
MeebusJaximus
- 101
- 2
- 2
- 8
3
votes
3 answers
How do I run a background service written in MONO?
I need the service to automatically start upon boot, it does not require console access for a start. Ofcause it would be nice to be able to produce some output for logging/debugging/stats. But for now, I just need a "TCP listener" that runs in the…
BerggreenDK
- 364
- 1
- 3
- 14
3
votes
1 answer
Mono hard float latest release is failing for Text box control
I have installed mono for hard float 3.2.7. If I put Text box control within the C# the code is crashing. Why is text box control is failing in the 3.2.7 (hardfloat) version? Is there a fixed version of mono?
user14140
- 31
- 1
3
votes
1 answer
Parsing Double in Mono (C#) fails
I need to serialize objects to JSON. If I install mono from apt-get, serializing with JSON.net does not work.
I added this line into /etc/apt/sources.list:
deb http://debian.meebey.net/experimental/mono /
After this, i ran
sudo apt-get clean
sudo…
feedc0de
- 229
- 2
- 3
- 9
3
votes
2 answers
Mono C# SPI interface
Is there any way that I can interface with an SPI pin extender from a Mono C# application running in Arch Linux on the RPi?
EDIT:
I want to use the hardware SPI interface like can be done with SpiDev, I do not want to use bit banging because it will…
Gerharddc
- 307
- 1
- 5
- 12
3
votes
1 answer
How to call ServoBlaster from C#/Mono?
I have successfully installed ServoBlaster, and it runs quite well from the terminal with the command
echo p1-22=250 > /dev/servoblaster
just like the documentation says.
However, when I try to call it from Mono with the code
string cmd = "echo…
Steve French
- 209
- 1
- 3
- 14
2
votes
1 answer
Mono + XSP: WebService example does not work
There have been questions quite similar to this one, but I could not find any solution. So excuse me for asking it again.
I'm running Debian Linux and I installed Mono. Once I started the sample WebService with the XSP (or XSP4) server, I can not…
Matthias
- 121
- 4
2
votes
1 answer
.Net Core apps on Mono
Trying to run .Net Core app with Mono on Raspberry Pi Zero W (as you know, .Net Core JIT is not support the ARMv6 processor instructions) and I've got error all time:
Cannot open assembly '#assembly_name#': File does not contain a valid
CIL…
MihailPw
- 153
- 1
- 2
- 9