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.
9,933
questions
0
votes
0
answers
22
views
Marshalling Conventions C++ vs C#/Mono
I have the following C++ API
#ifndef AGUR_H
#define AGUR_H
#define AGUR_EXPORT __attribute__((visibility("default")))
#include <cstdint>
extern "C"
{
AGUR_EXPORT void ...
0
votes
1
answer
10
views
MonoDevelop : Error occur while to debug or run the application Debugger operation failed, Native error= Cannot find the specified file
Recently, I have install Ubuntu 20.04 in my system and I am able to install mono and monodevelop.
When I try to run sample program on monodevelop I have got debug error. In past, I had no problem ...
0
votes
1
answer
19
views
N: Skipping acquire of configured file on repository 'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't supp arch 'i386'
I am trying to install mono or mono-complete on Ubuntu 20.04. I have got instruction to install or setup on Ubuntu,
these are
$ sudo apt install dirmngr gnupg apt-transport-https ca-certificates ...
0
votes
0
answers
20
views
Unable to find mono. How can I change my Environment's PATH Variable?
I am currently learning AR Development by using Unity and Visual Studio Code on MacOS. I understand that part of the process is downloading the Mono.Framework in order to be able to use the ...
0
votes
1
answer
23
views
Cascade Flux results
I have two actions in Mono, both returning similar object -
Mono action1()
Mono action2()
I tried doing -
Flux1.blockFirst();
Flux2.blockFirst();
both of the flux are performing the action I want. But ...
0
votes
0
answers
23
views
flatMap on Mono<byte[]> takes a long time to execute
We have a function in our Spring webflux application which takes in a Mono<byte[]> as below.
public Mono<VirusScanResult> scanFile(Mono<byte[]> bytes) {
int RETRY_COUNT = 1;
...
0
votes
1
answer
17
views
what is a MonoNext in Webflux and how to choose which one to use between flatMap and map
The following code was about to first delete a KV from redis, and then set a new KV there and return. But it actually never set after delete. I only see mistake after print every log, as 2 any is ...
1
vote
1
answer
22
views
Map Two arrays into a dictionary in Unity
I tried this:
private List<GameObject> objects;
private List<int> points;
private Dictionary<GameObject, int> objectsAndPoints;
private void Start()
{
for (int i = 0; i < ...
-1
votes
0
answers
17
views
Mono initial HTTPS test fails
I'm trying to set up an installation of mono; I've downloaded the package and installed it, and I'm taking the first few steps on this https://www.mono-project.com/docs/getting-started/mono-basics/ ...
1
vote
0
answers
15
views
Validating interim calls formed in Mono
I have a class that returns a Mono type collection, something like this and I want to add a test that verifies the interim calls that mono goes through in chain: My method to test is in Test class
@...
0
votes
1
answer
33
views
Java Spring Reactive, returning one Mono<..> from many multiple requests
[Java, Spring Reactive, MongoDB]
I'm currently trying to learn Reactive programming by doing and I found a challenge.
I have db object CategoryDB which looks like this:
@NoArgsConstructor
@Getter
@...
1
vote
1
answer
41
views
Convert Mono<Stream<String>> to Flux<String>
I have a Mono like this Mono<Stream<String>> and I want to convert it to a Flux like this Flux<String>. In my junior mind I think it should be simple because Mono<Stream<String&...
0
votes
1
answer
47
views
Reactor Java unit test what is the order of return values from a mocked dependency
I am a beginner at Reactive Java. I am trying to understand why a simple unit test fails when a mock dependency is setup to return two different values. This dependency is called twice in the main ...
1
vote
0
answers
41
views
How to find the cause of a memory leak?
Let's assume I have a major memory leak in my .NET6 Blazor WASM App.
Afaik there are no profiling tools (yet).
How could I possibly find the root cause (gc-root) of the that memory leak?
Are there any ...
0
votes
0
answers
14
views
CompletableFuture<List<CardItem>> to Mono object
i have an api that returns CompletableFuture
where CardItem{
cardType
cardStatus
cardDetails
}
but i'd like to iterate through the CompletableFuture and build a parent children object class where if ...
1
vote
0
answers
20
views
Xml Serialization and Deserialization problem of DatabindingList of Objects
I try to serialize and deserialize an xml file. The code in C# works perfectly well on Widows. But when I try to do it on ubuntu with mono, It fails for DataBindingList of Objects. The process was ...
0
votes
0
answers
20
views
Why couldn't find libe_sqlite3.so in mono winforms
i want to execute my winfrom app in linux
so migrated my app as linux mono
if execute mono myapp.exe, mono runtime throw DLLNotFoundException
log about exception
i read above log, couldn't understand ...
-1
votes
0
answers
38
views
Port WinForms to MacOS: Assertion: should not be reached at ..\mono\metadata\metadata.c:3041
I am trying to port my Windows Forms Application to MacOS using Mono, but I always get the same error:
Assertion: should not be reached at ..\mono\metadata\metadata.c:3041
What can I do?
Is there ...
0
votes
0
answers
43
views
Visual Studio Code no intellisense for C# Unity
I'm on Linux and I set up Visual Studio code for game development with Unity and C# but when I open a script there is no Intellisense, the words are colored and I get suggestions for variables that ...
-1
votes
0
answers
40
views
How to return a mono from async stub of grpc in java?
I am using spring webflux with grpc and I had a usecase where one of the client method will have Mono<T> as parameter and it will return Mono<V>. Below is the code structure. I am using ...
0
votes
0
answers
28
views
NLog date won't run in Linux Mono. (System.NotSupportedException)
I'm new on using NLog and C#. The configuration works correctly under Windows system. However, when I tried running it under VPS server. It shows this error message saying that the Date layout isn't ...
0
votes
0
answers
37
views
How to analyze mono crash blob files
I have a C# Windows forms application written in .NET full framework that is compiled on Windows and runs on a Linux machine with mono 6.12. Sometimes the application "freezes", there is no ...
1
vote
1
answer
66
views
Error on Mac only with latest Mono: error NETSDK1045: The current .NET SDK does not support targeting .NET Core 3.1
I am running the same project built by Cake and MSBuild on various platforms (Windows, Linux, Mac) targeting .NET Core 3.1. Everything goes well except on Mac where I'm getting NETSDK1045 error as ...
0
votes
0
answers
15
views
monodevelop not launching executable
I need to launch an .exe executable, so I installed monodevelop:
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-2 Wed Feb 26 23:23:50 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin ...
0
votes
0
answers
43
views
how to install mono 5 on debian 11
The latest mono stable is 6.12... but i need to install mono 5.20.. , i followed the mono documentation here:
https://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases
...
0
votes
0
answers
9
views
mono built from source: which files make up the runtime? (for separate packaging)
I'm building mono from source on (very) old glibc versions/different archs to ensure compatibility on old systems. I want to bundle the runtime part of the mono install tree only, so I can distribute ...
0
votes
0
answers
13
views
Why would the sent_bytes in my AWS ELB vary(by a lot) for same file?
This is a question to ask why my AWS ELB logs show a "sent_bytes" value that varies, even though it's for the same file.
I am troubleshooting a problem where a particular client repeatedly ...
1
vote
3
answers
71
views
Zip mono/flux with another that depends on the one I own
I want to zip two monos/fluxes, but the second one (the one I'll zip) is dependand from the first that I already own.
For example:
//...
fun addGroup(
input: GroupInput
): Mono<...
0
votes
0
answers
30
views
How to downgrade/configure elder Mono in Visual Studio For Mac?
I am trying to build old code with Visual Studio For Mac and getting the following error:
Target XamlC:
Compiling Xaml
Assembly: obj/Debug/OxyPlot.Xamarin.Forms.dll
...
/Users/.../...
0
votes
0
answers
38
views
trouble installing mono 6.12 release on Ubuntu 21.10
I am in this mess because I followed Ubuntu 20.04 instructions here: https://www.mono-project.com/download/stable/#download-lin-ubuntu - those were supposed to work on my 21.10 too :)
That repository ...
0
votes
0
answers
42
views
Why am I getting The type or namespace name `ServiceModel' does not exist in the namespace `System'?
I'm trying to compile my c# program using mono inside a docker container.
I have this file inside my Server directory
Server.cs
using System;
using System.Collections.Generic;
using System.Linq;
using ...
0
votes
0
answers
81
views
Where is MONO IDE and how to install
From where I can download MONO IDE. I have been using visual studio for years but never used MONO.
Now I have been given a task to create .net project in MONO enviorment. I need step by step ...
0
votes
1
answer
93
views
Can't build Godot mono project "namespace name 'Godot' could not be found"
I'm trying to build a Godot mono project that I've just cloned from my repo that works on my other machine.
When I try to build in Visual Studio I get the error
error CS0246: The type or namespace ...
0
votes
1
answer
52
views
Is there an way to add reference(dll) in parent path in C#?
== compile command ==
csc -r:"../Newtonsoft.Json.dll" test.cs
== exec command ==
mono test.exe
== exec result : dependency error ==
System.IO.FileNotFoundException: Could not load file or ...
0
votes
0
answers
15
views
Does MONO 6.0 have Maori locale support?
I just want to test whether my platform has Maori Locale Supported or not. Below is the my Test code.
using System;
using System.Globalization;
namespace SmartDeviceProject2
{
public class ...
1
vote
1
answer
122
views
Android emulator not responding problem on the AMD process for Xamarin
When I update my windows to windows 11, I notice about when I run the android emulator for my Xamarin project, it freeze and said not responding.
I try these items below but won’t fix my problem :
...
0
votes
0
answers
38
views
Compiling error in Geany IDE : While compiling Mono C# code Error code: Process Failed (The system cannot find the specified file)
Lately iam trying new code editors here geany is best and lightweight. My problem is with mono c# compiler Geany builds c,c++,java,php,ada,python code but having a problem while compiling to mono c# ...
0
votes
1
answer
50
views
Get window handle in godot? C#
How do I get the window handle in Godot (C# mono)
I've been a WPF and Winforms developer for quite some time but I just started Godot and I am wondering since I need to make modifications to the ...
0
votes
0
answers
29
views
Restsharp: Returns 0 content with error "unable to read data from the transport connection"
Background: Console app built in .Net 4.6.2
Dll: Restsharp 106.15.0.0
Mono: Mono JIT compiler version 6.12.0.122
API Endpoint: http server (not https)
At first I thought I was going mad as all was ...
0
votes
1
answer
35
views
Flatmap throws compile time error while flattened nested Mono
Have below Method
private Mono<EventSlotBook> getTestEventSlotBook(EventUserAppt eventUserAppt){
Query query = new Query();
query.addCriteria(
new Criteria().andOperator(
...
0
votes
1
answer
51
views
Is there a way to update a local variable through Mono.fromCallable()'s return value of an api inside a while loop?
I need to run GET requests multiple times until the return of the GET is an empty array.
Currently I have been doing it with a global receivedAllApiData variable I update in getApiValues if it is an ...
1
vote
1
answer
189
views
return Mono.error inside Map Spring Webflux
For Matching condition, return Mono.error from code , but gives compilation error. I commented out
//return Mono.error(new RuntimeException("User Phone Exists already"));
Result:
...
2
votes
3
answers
159
views
Caching parallel request in Spring Webflux Mono
We are using spring webflux (project reactor), as part of the requirement we need to call one API from our server.
For the API call, we need to cache the response. So we are using Mono.cache operator.
...
0
votes
0
answers
239
views
wine tells me to install .NET and mono gives error "File does not contain a valid CIL image."
i want to run hunterpie.exe . I've test wine (i've installed wine-mono) which tells me :
A fatal error occurred. The required library hostfxr.dll could not be found.
If this is a self-contained ...
1
vote
2
answers
111
views
C# / C++ Interop: How to modify class in C++ memory from C#
I'm including a C# DLL in my C++ project, and I want both to be able to edit the same struct or class in memory easily I could use functions to set/get the members or struct, but I think this would ...
0
votes
0
answers
39
views
Aes seems cannot work with 128bits FeedbackSize on Mono?
I want to encrypt data and then send it to the server. Here is my code.
var aes = Aes.Create();
aes.Mode = CipherMode.CFB;
aes.FeedbackSize = 128;
aes.Key = Encoding.UTF8.GetBytes(key);
aes.IV = ...
0
votes
0
answers
30
views
C# compiler not showing complete stack trace for runtime errors
C# compiler version:
mono --version
Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: ...
0
votes
0
answers
36
views
VBNC compile errors
I've just installed mono complete, mono-vb and associated libraries, it all appears to be there.
I've written the simplest of vb examples:
print "Hello, this is a test"
end
but vbnc gives ...
0
votes
0
answers
55
views
code coverage for Mono.zip()..zipwhen().zipwhen().map(m->{}) using Junit
Code Coverage does not cover the code in map for Mono.zip()..zipwhen().zipwhen().map(m->{}) using Junit, Mocked all the containing method or service calls, still cannot cover that code.
0
votes
0
answers
65
views
C# send email in Linux
I am trying to send email using following code on Debian 10 through Mono.
var mail = new MailMessage
{
From = new MailAddress(FromAddress),
...