Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mono]

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

1
vote
0answers
26 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. ...
0
votes
1answer
67 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
votes
1answer
185 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 ...
0
votes
0answers
83 views

C# mono - How to convert jpg image byte array and set into picturebox?

I am a newbie to mono C# programming in raspbian os (pi3 b). I have written a fingerprint scanner application in C# and using mono, I am running the same application in Raspbian os under the pi3 ...
1
vote
1answer
82 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 ...
0
votes
0answers
80 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 ...
0
votes
1answer
56 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 ...
2
votes
2answers
6k 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 ...
0
votes
1answer
70 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 ...
1
vote
1answer
756 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'...
0
votes
2answers
435 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?
0
votes
3answers
3k 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 ...
1
vote
1answer
1k 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 '#...
2
votes
1answer
57 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 ...
1
vote
1answer
488 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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
290 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 ...
0
votes
0answers
366 views

EMGUCV /C# program developed on Intel i86+Visual Studio combination to be ported to Raspberry Pi (Linux+ARM)

I have a video processing program that I have built on EMGUCV and C# using Visual Studio and an Intel i86 desktop environment. This has been made to work in an Ubuntu 1404 environment with Intel i86 ...
0
votes
1answer
250 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/...
0
votes
1answer
541 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 ...
0
votes
1answer
128 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), ...
2
votes
1answer
470 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 ...
1
vote
1answer
893 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 ...
1
vote
1answer
537 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 ...
0
votes
1answer
163 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 ...
2
votes
1answer
177 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....
2
votes
3answers
5k 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 ...
1
vote
4answers
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: ...
2
votes
0answers
1k 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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
468 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 ...
1
vote
2answers
749 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 ...
1
vote
0answers
436 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. ...
2
votes
0answers
3k 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 ...
3
votes
1answer
677 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 ...
3
votes
1answer
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/...
1
vote
2answers
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 ...
0
votes
2answers
985 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 ...
0
votes
0answers
903 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 ...
2
votes
1answer
263 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 ...
3
votes
2answers
4k 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,...
5
votes
2answers
4k 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 ...
3
votes
1answer
870 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 ...
5
votes
3answers
10k 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 ...
4
votes
1answer
15k 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 ...
2
votes
1answer
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 ...
2
votes
0answers
332 views

Mono | Overwrite | Crash [closed]

I had recently some problems with mono, apache2 and ASP.NET on my Wheezy Hard-Float image. If I open the page the first time it starts and displays normally. After editing the page and publishing it ...
3
votes
3answers
18k views

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,...
2
votes
3answers
3k views

How can I run a MONO application/program on boot?

I would like to make this as userfriendly as possible, so my MONO application is going to be a fullscreen application that runs automatically when the OS and startx is done loading. How do I run a ...
1
vote
1answer
903 views

How bad are the MONO errors at the moment? eg. datetime issues [closed]

I have heard that there are several MONO issues with the current version of Raspbian Wheezy. What is the extent of these issues? Are they minor or do they severely stifle programming? Other people ...