Skip to main content

Questions tagged [mono]

Mono is an open-source, cross-platform implementation of the .NET platform.

Filter by
Sorted by
Tagged with
0 votes
0 answers
311 views

Start mono application on startup

This is my first time using a linux/rasbperry pie and I am trying to start a program I made in c# on my windows on startup. It has a graphical user interface, and can run from the command line using ...
Somecode's user avatar
-1 votes
1 answer
517 views

WinForms Application on Raspberry Pi OS

Im running Raspberry Pi OS (formerly Raspbian) on a RaspberryPi. I have to develop a WinForms app. RaspberryPi OS is based on Debian. This means I can use the .NET Core SDK (via a snap package). Or I ...
thinwybk's user avatar
  • 175
0 votes
0 answers
35 views

monodevelop bug on creating new solution

Just installed mono-complete and monodevelop on my raspberry pi 4. When I run monodevelop, I see the IDE/GUI, but when I try to create a new solution (.NET/Console Project), when I click "Next&...
Sittin Hawk's user avatar
2 votes
1 answer
1k views

Receive data on the raspberry with c# using mono

I want to send strings between the raspberry and a windows computer via serial and with c#. This works from the raspberry to the computer as shown below. In the picture you can see that I have sent a ...
floriskn's user avatar
1 vote
0 answers
69 views

How to receive serial data with c# on a raspberry with mono [duplicate]

Hello I want to make a program for the computer and the raspberry, this program must ensure that the raspberry and the computer can communicate via serial. I have already found a code that does this, ...
floriskn's user avatar
0 votes
0 answers
308 views

How to change the decimal separator in C# for raspberry pi with mono?

I'm working on a C# application that I run on raspberry pi with mono. I would like to convert a double A = 0.05 to a double B = 0,05. I succesfully did it on my computer, I changed my Number Decimal ...
Macronaute's user avatar
1 vote
0 answers
403 views

C# "/dev/ttyGS0" throws error "Invalid Argument"

I'm working on an application for my pi in C# code. The overall idea is to create a usb "pc status" monitor that I can put inside my PC case. My code that runs on the pi uses a ini file for settings. ...
Alexis Shepard's user avatar
0 votes
1 answer
286 views

Rasbian Stretch monodevelop does not start anymore

After the upgrade monodevelop 7.6.0 crashes with unhandled exception. My mono apps which used to work crash as well. They work on other distros with the same mono version. Any known solution?
0___________'s user avatar
1 vote
1 answer
1k views

Mono for Raspberry Pi Zero

I am trying to run a simple "Hello, World" C# app on my Raspberry Pi Zero. It works fine on my Raspberry Pi B+, but I get an "illegal instruction" error on the Zero. In both cases, I am compiling ...
BoCoKeith's user avatar
  • 147
1 vote
1 answer
851 views

Mono can't see serial port

I followed the instructions here to disable Bluetooth so that /dev/ttyAMA0 is available, which it is. I wrote a small Python script to open /dev/ttyAMA0 and send some random data, and I could receive ...
TheHvidsten's user avatar
0 votes
0 answers
347 views

crontab @reboot starting an UI Application

I was able to do this until I downloaded the latest raspberry pi image. It is a DotNET WinForm application. Started in crontab using @reboot /home/pi/auto.sh #!/bin/bash cd /home/pi/test export ...
s k's user avatar
  • 121
-1 votes
1 answer
1k views

After several days my Pi's stop being able to launch new processes nor allow SSH connections

We are running raspbian stretch and have our mono based application running fine however we've found that after several days (this can be 2 days it could be 7) that our PI's just hang. Kernel: Linux ...
MJJames's user avatar
  • 99
3 votes
2 answers
19k views

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 ...
MeebusJaximus's user avatar
0 votes
1 answer
246 views

Mono TCP server listening but connection fails

I have a C# program running on Mono on my Pi 3 and listening on port 8877. It's running Raspian and has no firewall as far as I can tell - I've also not installed one. But I cannot connect to it from ...
Lee's user avatar
  • 111
1 vote
1 answer
2k views

How to run a c# web service from a raspberry pi 3?

I want to write a simple web service in c# using Visual Studios, and deploy this service from a Raspberry Pi 3. I know mono is a tool that runs .NET code on Linux machines, but all of the examples I'...
jhomer's user avatar
  • 13
0 votes
2 answers
1k views

Is there a way to install back the original Mono to Raspbian?

I think it was the Mono 3.2.8, but I have installed Mono 5.2.0 and I can't rollback to that version. Is there a way to do this?
greyline's user avatar
  • 101
0 votes
3 answers
8k views

How to install MonoDevelop or other IDE for Mono 5.2.0 on Raspberry Pi 3?

I have used this accepted answer to install Mono 5.2.0 to the Raspberry Pi 3. But I don't know how to install monodevelop or other ide to the Rpi3, because sudo apt-get install monodevelop doesn't ...
greyline's user avatar
  • 101
2 votes
1 answer
3k views

.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 '#...
MihailPw's user avatar
  • 153
2 votes
1 answer
119 views

Application on Mono stopped working properly

I am running a .Net application under Mono for months now. I did an apt-get upgrade and then after trying to run the application I get NullReference unhandled-exceptions in class constructors. I ...
Saloom's user avatar
  • 31
1 vote
1 answer
915 views

SignalR on Mono Raspbian

Had tried to launch SignalR client (.NET Framework 4.5 target) on my Pi 3 with Mono on Raspbian. But it's not working because SignalR's throws a System.InvalidProgramException - something wrong with ...
MihailPw's user avatar
  • 153
0 votes
1 answer
6k views

Autostarting a mono application

I have been trying to get my mono form application to autostart with the GUI and I have tried lots of methods shown on other threads but it just won't work. I manually run a .sh script by double ...
Theoden's user avatar
0 votes
1 answer
738 views

Can't read from SerialPort using mono - readChar timeout

I wrote a script in C# on my PC that opens up a USB port and talks to a weighing machine. Unfortunately, when I tried to do the exact same thing using mono on my raspberry pi, my readChar function ...
Rohil Verma's user avatar
-1 votes
1 answer
898 views

My mono service crashed - how do I figure out what happened?

I wrote a .net 4.0 mono service called snserver.exe and am hosting it on a Raspberry Pi via mono-service. In order to run it, I execute the following line: mono-service -l:/var/supernovaServer/...
Nicholas Hill's user avatar
1 vote
1 answer
1k views

Mono on Raspberry Pi

I've seen a lot of talk about running Mono/.NET code on the Raspberry Pi. Has there been any succceses in actually running any Mono code on the Raspberri Pi? On their site, they list several Linux ...
Liam's user avatar
  • 661
0 votes
1 answer
379 views

Program gets wrong time when loaded on boot

When I've booted my Raspberry Pi 3 into Raspbian, I've setup the /etc/profile to load a program though mono. However, the program now reports the wrong time (An hour behind on the previous day), ...
2haloes's user avatar
4 votes
1 answer
2k views

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 ...
Sven Borden's user avatar
1 vote
1 answer
1k views

RaspberryPi 2 and latest version of mono

Last night I reinstalled my Raspberry Pi 2 model B with the latest version of Raspbian (Jessie). All went well, but when I tried to install mono by following these instructions, the installation ...
MichaelK's user avatar
  • 131
1 vote
1 answer
764 views

Mono with Winform, Xlib: extension "RANDR" missing on display ":10.0"

I am aware that mono in PI 1 / 2 cannot support WinForm with textbox. And that is the reason why I purchase my PI3B. I installed my Mono on Raspbian with Pixel, using the command below: sudo apt-key ...
s k's user avatar
  • 11
0 votes
1 answer
195 views

Reason that Raspberry PI running under Mono 4.4.2 requires the MonoApplications line rather than the MonoApplicationsConfigDir line

For Raspberry PI 3, in order to make sure there is an one to one mapping between apache2 server processes and mod_mono_server4 processes, the /etc/mono_server4/mono-server4-hosts.conf file must ...
Frank's user avatar
  • 161
2 votes
1 answer
283 views

RaspberryPi.Net Libary LCD Display

So my problem is, that we want to control a LCD (HD44780) Display with our Raspberry Pi Model B V1.1. The Libary seems to have a support for it. But there only seems to be one example in the whole web....
ThatOneChlorGuy's user avatar
2 votes
3 answers
6k views

Running Visual Studio Built C# GUI on Raspbian Jessie

I am using a Raspberry Pi 3 with the official 7" touchscreen. I would like to build a GUI on visual studio on my PC, and then be able to run the program on the Raspberry Pi, with the Pi running ...
dyaus292's user avatar
1 vote
4 answers
2k views

Rotary encoder/monitoring multiple pins with Raspberry Sharp

I'm using Mono and the Raspberry Sharp library to try and decode the output of a rotary encoder. Raspberry sharp: https://github.com/raspberry-sharp/raspberry-sharp-io Rotary encoder data sheet: ...
goobering's user avatar
  • 10.7k
2 votes
0 answers
2k views

Broadcast UDP Message from Raspberry Pi to other subnet in the LAN [closed]

I have created two C# application to send a UDP command to broadcast IP and receive the message. I can send the broadcast message from my windows system to Raspberry Pi and receive the message in my ...
Arun Kumar K S's user avatar
0 votes
1 answer
2k views

running MonoGame on Raspberry Pi

I'm trying to get a MonoGame project working on my Pi. I've done the following: sudo apt-get install mono-runtime sudo apt-get install monodevelop sudo apt-get install libmonogame-cil-dev ...
Chris G. Williams's user avatar
2 votes
1 answer
592 views

Sending data to a 1602 LCD in Mono C# over i2c

How would I be able to put information on a 1602 lcd over SPI? I was thinking that it may be possible to write to the pin (like a file) with all the hex codes of the letters etc. or similar. I'm a ...
TheJamaicanGuy's user avatar
1 vote
2 answers
915 views

Pi B+ as a 24v motor controller, code written in C#(Mono). Power concerns

Background Information My college has entered an annual racing competition called Greenpower, and it's been agreed to use a Raspberry Pi as the car motor controller. Since I am the only knowledgeable ...
TheJamaicanGuy's user avatar
1 vote
0 answers
512 views

xbuild fails to build .csproj on raspbian

I am trying to build a C#-project (written on windows, copied to the Pi): root@raspberrypi:/home/pi# xbuild MDD_Basic.csproj Which leads to two error messages and the build inevitably failing. ...
Mark's user avatar
  • 176
2 votes
0 answers
4k views

Receive data from uart with Raspberry Pi mono c#

From today, after updating libraries Mono C# on my Raspberry Pi Rev 2 Type B (wheezy), the communication via serial no longer works, it seems to me very strange, because yesterday with the same ...
stfno.me's user avatar
  • 121
3 votes
1 answer
712 views

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 ...
user14140's user avatar
3 votes
1 answer
1k views

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/...
feedc0de's user avatar
  • 229
1 vote
2 answers
2k views

UART/Serial communication w/ mono

I have a diplay w/ touch functionality, that communicates via either I2C, SPI or Serial (datasheet). I want to use it in a mono-application. The display has sufficient power and is connected ...
Mark's user avatar
  • 176
0 votes
2 answers
1k views

Read positioning data from 4 laser mice

On Arch Linux, would it be possible to somehow read the raw positioning data from 4 of these mice at at least 2400dpi simultaneously at high speed (150mm/s) using an RPi? I am guessing that this ...
Gerharddc's user avatar
  • 307
0 votes
0 answers
1k views

Compiling Mono 3.x on Raspberry Pi

To get rid of the soft float vs. hard float ABI problem I tried to install an up-to-date version of mono on my Raspberry Pi with git clone https://github.com/mono/mono.git cd mono git submodule init ...
Boris's user avatar
  • 101
2 votes
1 answer
275 views

Fail to compile NancyFX

I'm trying to compile NancyFx on my raspberry using this guide but fail at step 5. The command "rake mono" failes with the error uninitialized constant Albacore:Task So, I guess there is ...
Flores's user avatar
  • 191
3 votes
2 answers
5k views

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,...
Gerharddc's user avatar
  • 307
6 votes
2 answers
5k views

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 ...
Gerharddc's user avatar
  • 307
3 votes
1 answer
990 views

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 ...
Steve French's user avatar
7 votes
3 answers
22k views

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 ...
Subject's user avatar
  • 83
5 votes
1 answer
20k views

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 ...
Steve French's user avatar
2 votes
1 answer
1k views

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 ...
Matthias's user avatar
  • 121