mono

Google.Apis.Sheets.v4.SheetsService Execute freezes application in dotnet Mono

我只是一个虾纸丫 提交于 2020-01-06 04:41:26
问题 I've been using the GoogleSheets API from a C# application in windows without problem for quite a while. When I port this program to Linux, and run using Mono, it freezes regularly at "Execute" for Spreadsheets.Get OR BatchUpdate. SheetsService service = new SheetsService(new BaseClientService.Initializer() { HttpClientInitializer = credential, ApplicationName = ApplicationName, }); var gotSS = service.Spreadsheets.Get(spreadsheetId); // <<< freezes HERE ... var vbur = service.Spreadsheets

NUnit test under mono

允我心安 提交于 2020-01-06 04:21:07
问题 I have a mut.cs as follows. using System; namespace ns { public class Arith { public int Add(int x, int y) { return x + y; } public int Mul(int x, int y) { return x * y; } } } I came up with a Unit test for this - mut_test.cs using NUnit.Framework; using System; using ns; namespace Unit.Tests { [TestFixture] public class ArithTests { private Arith m_arith = null; [Setup] public void Setup() { m_arith = new Arith(); } [Test] public void ValidateAdd() { int res = m_arith.Add(10,10); Assert

What are the differences between Mono's and Microsoft's ASP.NET implementations?

陌路散爱 提交于 2020-01-06 03:11:10
问题 I'm about to launch an ASP.NET web site which will be running on a Linux server using Mono. First I would like to do some testing on my own machine. I have heard lots of info about Mono, but this is the first time I actually use it for a project. So far, I have only deployed my applications on IIS servers. I would like to get some information about the differences between the two, but most of the questions about Mono on StackOverflow are a bit dated. So, here are my specific questions: Which

GAC (gacutil) not working with IronPython.dll on Mono

本秂侑毒 提交于 2020-01-06 02:59:09
问题 I tried to use gacutil (mono) for IronPython, but I got the following error. sudo gacutil -i IronPython.dll Password: Failure adding assembly IronPython.dll to the cache: Strong name cannot be verified for delay-signed assembly What does this mean? Any solution to this problem? 回答1: Did you build IronPython yourself? Signing is kind of a PITA and you'll need to provide your own full key to get a real signature. We do include the MS public key in the distribution but this can only be used for

c# mono interop - Unrecognized configuration section dllmap

懵懂的女人 提交于 2020-01-06 02:35:24
问题 I understand: when I put dllmap into app.config so that mono can find the linux flavor of the native dll, I upset the windows based configuration system as there is no configuration section defined for it. I can see I have some options: add a dummy section for it - this would fail for multiple dllmap elements so I don't think that is the answer bother with different configurations per platform - I'd rather avoid that extra work So question is, how do you silence the error on windows? <?xml

Can't compile project - VB.Net - Fatal error BC2000 - Xamarin/MonoDevelop

我的梦境 提交于 2020-01-06 01:55:16
问题 Just downloaded Xamarin/MonoDevelop in order to create a VB.Net based cross-platform application. However Xamarin keeps returning a fatal error when attempting to compile a default template. Steps: File > New > Solution VBNet > Gtk# 2.0 Project Name solution Click Play (Debug) Results: Error Fatal error BC2000 : compiler initialization failed unexpectedly: Project already has a reference to assembly System. A second reference to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework

Running mono/c# on intel phi coprocessor

一曲冷凌霜 提交于 2020-01-05 19:46:50
问题 Is it possible to run mono on intel's phi coprocessors? From what i have understood they are operating a form of Linux but i haven't managed to find a concrete answer. If it is possible, are there any sort of limitations/issues? I'm looking to run some C# code on them as i had heard there are no issues with warp divergence, or something similar. 回答1: It is entirely possible to run mono on Phi due to the fact that it is just running a standard Linux kernel. Any specific shared libraries you

Mono + Linux + SQlite-> bad practice -> result unable to open database file

耗尽温柔 提交于 2020-01-05 10:32:03
问题 found and interesting problem :D As many asking around why in Mono + Linux sometimes happens "unable to open database file" while opening SQLite database. Well after few days we found a problem which was so hidden that I was going insane. Consider the following code ( please don't comment of the style as that is not the point! ) System.Data.SQLite.SQLiteConnectionStringBuilder sqcsb; sqcsb = new System.Data.SQLite.SQLiteConnectionStringBuilder(); sqcsb.DataSource = "file.db"; sqcsb.SyncMode =

Mono + Linux + SQlite-> bad practice -> result unable to open database file

若如初见. 提交于 2020-01-05 10:32:00
问题 found and interesting problem :D As many asking around why in Mono + Linux sometimes happens "unable to open database file" while opening SQLite database. Well after few days we found a problem which was so hidden that I was going insane. Consider the following code ( please don't comment of the style as that is not the point! ) System.Data.SQLite.SQLiteConnectionStringBuilder sqcsb; sqcsb = new System.Data.SQLite.SQLiteConnectionStringBuilder(); sqcsb.DataSource = "file.db"; sqcsb.SyncMode =

HttpCompileException: “External exception” when trying to access razor view in ServiceStack hosted on Apache+mod_mono

雨燕双飞 提交于 2020-01-05 09:34:39
问题 I am getting HttpCompileException when trying to access a razor view. Error log contains no information. The same deployment works on NGinx+FastCGI, but not on Apache+mod_mono. I am not using the mod_mono AutoConfiguration because I have not (yet) found a way how to make it work. This is my "manual" apache2.conf configuration for mono: MonoAutoApplication disabled AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd MonoApplications "/:/var/www/MyAppName" <Location /> SetHandler