Questions tagged [mono]

Mono is an open source implementation of .NET that runs on many platforms, including Linux, Mac OS X, and Windows. This allows running .NET applications on platforms other than Windows with little to no modification. Do NOT use this tag for questions about Java/Spring - use [spring]/[java] instead.

Filter by
Sorted by
Tagged with
0 votes
2 answers
36 views

Reactor Flux remains blocks till getting response from server

I'v created a Flux which emits API response on subscription. The API takes few seconds to respond. I'm also switching the flow to a sceduler with 2 threads. private Scheduler sc = Schedulers....
quintin's user avatar
  • 812
-1 votes
0 answers
59 views

Mono on Centos 7 Installs and Runs But is Broken on yum Update

I have a CentOS 7 server that I'm trying to install Mono on. I want the Stable version of Mono rather than Beta. The actual install works, and Mono seems to run, but when I do a yum update it fails ...
Adam's user avatar
  • 6,545
0 votes
0 answers
21 views

Package gtk-sharp-2.0 was not found in the pkg-config

I tried to run mcs hello.cs -pkg:gtk-sharp-2.0 on ubuntu but it showed this error: Package gtk-sharp-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `...
moa biru's user avatar
0 votes
1 answer
27 views

issue in using reactive apps with lambda

I am pretty new to use of reactive in Java. Here below is the issue that I am facing. I have developed a springboot-REST application with contoller, service and repository layer with R2DBC driver. ...
Ram's user avatar
  • 327
0 votes
0 answers
23 views

MSBUILD .NET 7 Path Linux in Makefile

I want to use MSBUILD from .NET 7 directly in Makefile and not the old mono version with MSBUILD 15.0 Old Path from Mono MSBUILD_PATH=$(MONO_DIR)/msbuild/15.0/bin New one in .NET 7? Mono MSBUILD ...
MakiWolf's user avatar
-1 votes
0 answers
22 views

trust & observables - how could we safeguard the input of an observable

In this instance the boar god is only receiving textual messages, what design pattern would help to safeguard the message sender and prevent spoofing? What could we pass in or contain in the component ...
John Holland's user avatar
-1 votes
0 answers
29 views

System.Net.Http.Headers, Json, and HttpClient not found

So i have a cs file i develouped in visual studo and when i port over to linux it cant find the CIL image so i put the script into a txt cs file on the server itself and then using mcs to compile it ...
Adam Marshall's user avatar
0 votes
0 answers
18 views

Why DllNotFoundException in mono

Linux debian 10 Mono 6.12 .net framework 4.5 I runned a c# program on linux with mono. Now I want to add a function : change a file permission to 755 on linux. I add Mono.Unix from nuget to the ...
kimitop's user avatar
0 votes
0 answers
36 views

Mono 5.x version on bookworm

We were looking at updating all our software and architecture as everything is extremely outdated. We updated to Debian 12 bookworm but ran into issues with our application only supporting up to mono ...
Boonya's user avatar
  • 1
0 votes
0 answers
35 views

Compiling VB.NET library with multiple .vb files under Linux fails

I failed to compile VB.net library under Ubuntu When I run the command vbnc *.vb -t:library -out:mylibrary.dll I am getting the error Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.0.1 - ...
roman mashchak's user avatar
4 votes
2 answers
171 views

How to correct "Mono.Btls.MonoBtlsException: Ssl error:1000042e:SSL routines:OPENSSL_internal:TLSV1_ALERT_PROTOCOL_VERSION"

I've upgraded an Ubuntu 18.04 to 20.04 VPS. Then I've also upgraded Mono runtime, which is now 6.12.0.200. Apache is 2.4.41. I've a "mixed" application PHP + some web service in Asp.net / ...
stighy's user avatar
  • 7,269
0 votes
0 answers
9 views

Mono Framework on Mac behind proxy - Safari can access google.com, but HttpClient cannot

So, I am having issues with a Mac (macOS 13.3.1) running Xamarin / Mono Framework. The system is behind a proxy (no credentials required). The proxy is fixed, configured in the system settings (no ...
Alexander's user avatar
  • 19.9k
0 votes
0 answers
20 views

Is it possible to install Mono 5.18 under Ubuntu 20.04 ('focal')?

I need the very specific Mono version 5.18 under Ubuntu 20.04 (focal). However under https://download.mono-project.com/repo/ubuntu/dists/focal/snapshots/ only the snapshots for Mono >= 6.8 are ...
Juri's user avatar
  • 1
0 votes
1 answer
26 views

Installing IronPython on Ubuntu Using Mono

I am trying to install IronPython On Ubuntu 22.04 using Mono. I've followed each of the steps mentioned here - https://davidtavarez.github.io/2018/installing_ironpython/, but I'm still unable to ...
suman paul's user avatar
0 votes
0 answers
38 views

Specify to use native .Net class and not Mono's implementation in Unity

When working on a Unity IL2CPP .Net Framework project, is it possible to force the application to use the native .Net 4.8 version of a specific class instead of the Mono implementation? I don't ...
Reahreic's user avatar
  • 596
-1 votes
0 answers
20 views

Availability of mono vbc.exe on RH9 family

I need to run a Mono app that requires vbc.exe (the VB compiler). I was able to find a Fedora38 package (mono-basic) which included vbnc.exe, but no RH compatible RPM's with vbc.exe. I've been told ...
TSG's user avatar
  • 4,260
0 votes
0 answers
26 views

Mono on Linux Ubuntu - Some Unicode characters will not display at the end of a string using DrawString()

I'm making a cross-platform .NET Framework 4.8 app where the same EXE needs to run on Windows and run on Linux using Mono. The app allows the language to be toggled dynamically between English and ...
KrisK's user avatar
  • 1
0 votes
0 answers
25 views

Mono library assert when starting application for profiling

I have a Xamarin application that I am launching in debug from Visual Studio. I have followed a Microsoft blog on enabling the mono profiler using :- adb shell setprop debug.mono.profile log:calls ...
Pete Roberts's user avatar
1 vote
1 answer
34 views

How type arguments are passed to functions in .NET runtime?

While it is an implementation detail, it is still interesting for me how .NET runtime passes type arguments to generic functions. Consider following C# code: using System; void PrintT<T>() =>...
kp2pml30's user avatar
0 votes
0 answers
65 views

NTP update causing C# Winforms Timer to pause

I'm running C# mono (linux) on raspberry pi .NET 4.5. For the purpose of this simple test program, let's say I've got a simple form with a System.Windows.Forms.Timer. If I let the program run at start-...
pm101's user avatar
  • 1,309
0 votes
0 answers
44 views

View not found Exception origin: System.Web.Mvc on Mac

The issue: System.InvalidOperationException The view '~/Views/Mobile/ProfilesGridView.cshtml' or its master was not found or no view engine supports the searched locations. The following locations ...
Irfan Y's user avatar
  • 1,252
0 votes
0 answers
66 views

Visual Studio for Mac to run .Net Framework 4.6.1 using Mono - Unable to select Mono version

I have been trying to run a project with target .Net framework 4.6.1 on Visual Studio for Mac 2019. Project is building successfully but giving runtime error Could not load file or assembly 'System....
missingsemicolon's user avatar
0 votes
0 answers
50 views

Why can't chktrust validate the signature of .msi files on CentOS 7?

I am currently working on a project to validate the digital signature of Windows PE files on a CentOS machine. I am able to validate the digital signature on Windows. PS C:\Users\username> Get-...
beat_it_987's user avatar
0 votes
0 answers
14 views

I am cross-compiling MONO for a PPC32

I need to tell autoconf what the --host parameter is but I don't know the syntax or acceptable values. I tried i386 and noticed it created a i386-libtool in the root directory. Is there a list of ...
Mark Clark's user avatar
0 votes
1 answer
34 views

Visual Studio for Mac build error Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/aspnet_compiler.exe is invalid

I'm trying to build a solution in Visual Studio (2022) for Mac and getting this error Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/aspnet_compiler.exe is invalid. The project's ...
missingsemicolon's user avatar
0 votes
0 answers
60 views

Programmatically focus on a form in a webview (WKWebView) in xamarin ios 13 and above

I tried to set the Entry auto focus which is inside the WKWebview using xamarin ios renderer I have created CustomView in xamarin forms and in renderering im adding WKWebView native to that place Here ...
user2346947's user avatar
0 votes
1 answer
68 views

Can Visual Studio designer files be edited outside of Visual Studio?

Visual Studio creates designer files (such as frmMain.Designer.cs) for WinForms forms. In these files, there is a method called "InitializeComponent", and it has a comment: do not modify the ...
zhoudu's user avatar
  • 623
0 votes
0 answers
100 views

Running WinForms with DevExpress components on Linux

Previously, our team developed applications using WinForms with DevExpress components. Now, we need to migrate these applications to Linux (Debian) but we are facing issues while trying to run them ...
DrWh0's user avatar
  • 126
0 votes
0 answers
21 views

How to troubleshoot 'Target named Validate not found in the project' error in Jenkins when using mono to build a .NET project?

Started by user Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/Test The recommended git tool is: git using credential gitea git rev-parse --resolve-git-dir /var/lib/jenkins/...
Shirshak Kumar Kafle's user avatar
0 votes
0 answers
49 views

Access denied exception when using AnonymousPipeClientStream on Linux/Mono

The below example runs fine on a Windows environment, but crashes with UnauthorizedAccessException when creating the AnonymousPipeClientStream object under Linux/Mono. Is there anything obvious I ...
glopes's user avatar
  • 4,048
0 votes
0 answers
9 views

Error building mono-6.12.0.182 on Solaris 11 x86

When I try to build mono 6.12.0.182 from the sources, it fails due to a missing makefile dependency. I downloaded the source for mono-6.12.0.182 from mono-project.com and used ./autogen.sh amd64-pc-...
Paul Thorpe's user avatar
  • 1,930
0 votes
0 answers
17 views

Trouble installing Mono on RPI. Libmono-corelib4.5-cil error

My setup at the moment is RPI zero2w running Bullseye. I installed Mono from the mono-project download page. On installation it seems to freeze on libmono-corelib4.5-cil the Pi becomes unresponsive. ...
Allan M 's user avatar
0 votes
1 answer
85 views

Unity: the null-coalescing operators not working [duplicate]

Problem I cannot use ?? and ??= operators in Unity. public class Compo : MonoBehaviour { [SerializeField] Transform? _tr; void Start() { _tr ??= transform; Debug.Log(_tr); ...
hotari's user avatar
  • 13
1 vote
0 answers
74 views

Unable to send an e-mail with MONO on Debian : TLS error

This code works on Windows and worked on my Debian server until IONOS my e-mail service provider prevented any communication with their SMTP server if the TLS version is below 1.2 public static bool ...
Vozek's user avatar
  • 21
0 votes
0 answers
55 views

App throws CryptographicException: Input data cannot be coded as a valid certificate using PFX generated from Certbot on Linux

We're using the pfx file in a Hololens2 app that is using the WebRTC library (which wasn't deprecated at the time the application was created). The application was working, but the cert expired and ...
P-ratt's user avatar
  • 259
1 vote
0 answers
28 views

Mono API and Generic Parameters

I'm trying to get the generic parameters of the type from a MonoClassField. Thats my current setup m_type = mono_field_get_type(_field); m_type_class = mono_class_from_mono_type(m_type); ...
Lucifer Morningstar's user avatar
0 votes
0 answers
59 views

Linker error while linking Mono to C++ project on Mac

I'm working on linking Mono into my Mac C++ project using CMake and I've gotten most of the way there. Here is my CMakeLists: cmake_minimum_required(VERSION 3.26.3) project(IgnisEngine VERSION 0.1 ...
Mickey's user avatar
  • 1
0 votes
0 answers
324 views

dotnet complains WindowsDesktop is missing

On Ubuntu 23.04 with dotnet 7.0.105 I try to build a C# project (in Mono): dotnet build 'appname'.csproj which results in the error message: MSBuild version 17.4.3+7e646be43 for .NET Determining ...
ReinW's user avatar
  • 1
0 votes
0 answers
42 views

Run Mono Application on Startup with a Service

When the ubuntu system boots up, my service that starts test.exe fails (using systemctl status Testprog.service): at System.Windows.Forms.XplatUIX11..ctor () at System.Windows.Forms.XplatUIX11....
INTENSA's user avatar
  • 91
0 votes
1 answer
82 views

Error using ASP.NET application with Mono

So, I asked a few days ago, how to deploy an ASP.NET application on an Apache web server, and in my case, using Mono was the better solution. (Can I deploy an .ashx file on Linux?) Here is my app: /...
PéloLégendaire's user avatar
0 votes
3 answers
63 views

How to sort Dictionary based on keys where key contains Month Year expression of DateTime as String

I am trying to sort below Dictionary Dictionary<string, int> map = new Dictionary<string, int>(); map["Sep 20"] = 10; map["Oct 20"] = 11; map["Nov 20"] = 23; ...
Sawan Meshram's user avatar
0 votes
0 answers
162 views

Omnisharp won't work inside of vscode for Unity

I want to use vscode as my editor to work with unity but intellisense refuses to work for anything Unity related, the C# extension keeps telling me that I need to install mono, but I have installed ...
Spilios Maderakis's user avatar
1 vote
2 answers
79 views

How to convert a number of pseudorandom bits into a statistically random floating-point value between 0 and 1?

I have an implementation of the xoshiro256** PRNG algorithm in an application I'm writing in C#. This works great for generating pseudorandom values between 0 and UInt64.MaxValue, but I've hit a spot ...
ArrayBolt3's user avatar
0 votes
0 answers
17 views

How to replace error page for Web API application on mono

I'm working on moving an existing Web API from IIS to NGINX with Mono and I'm stuck on default error pages: whatever I do, I still get default one, which exposes confidential data: system, ASP.NET ...
Marius's user avatar
  • 11
-1 votes
1 answer
81 views

Making value-type arrays in c# [closed]

I'm transfering data between c++ and c# and I really need to have value-type arrays or list to pass the data directly. I don't mind them being a const expression. Is there a way to have an array which ...
Aes123's user avatar
  • 85
0 votes
2 answers
101 views

Why is the size of the TabControl buttons different in Windows and Linux?

I'm trying to get an old .NET program to run in Mono under Linux. It works amazingly well, but one thing is something I have failed to get at. I have a TabControl and the tabs are enlarged to be touch ...
liftarn's user avatar
  • 429
0 votes
1 answer
48 views

Cannot get window to permanently reparent using XReparentWindow

I'm working on a WinForms mono application for personal use that manages remote connections. I've been trying to figure out a way to reparent certain X11 windows into my WinForms application. I have ...
djex's user avatar
  • 1
0 votes
0 answers
182 views

Unable to cross compile mono for arm64

I need to cross compile Mono for arm64 architecture (TI AM62xx device). I'm using the TI environment-setup file for setting up everything for cross compiling. Make fails with: mono-context.c:177:28: ...
babelbi's user avatar
0 votes
0 answers
34 views

How to unpack a 7z archive after exporting to Godot Mono 3.5 in C#?

I am using Godot 3.5 Mono. I want to write a small program for installing software or something. I have to use C# because of the large number of external libraries. There is a *.7z file in my godot ...
Сергей Попков's user avatar

1
2 3 4 5
200