|Do i need to install mono on every Linux PC to run .NET application on Linux platform?|
"can I run a mono application on a machine that doesn't have mono
installed": no; the same as you can't run a java application on a machine
that doesn't have java installed.
And at the same time (to both): yes. There are tools that attempt to make
this work, but they tend to be fiddly and a bit unreliable. However, it
should also be noted that several (not all, by any means) distros ship with
mono by default.
|should i use mono to develop linux app|
You can use Visual Studio without problems but for example you cannot use
WPF, while Windows Forms are ok. For more information what you can use
Moreover there exists Mono tools which integrates with VS:
|SevenZipSharp on Mono / Linux|
So far you have two options,
Fix SevenZipSharp on Mono/Linux to PInvoke 7z.so. That requires you to
change the PInvoke definition in source code, and also recompile the source
files. If even the developers of that project did not yet make it right, I
think you will need to pay much attention to that approach.
Switch to a full managed implementation, such as
|VB.net on Raspbian OS (Linux & Mono)|
You probably have only mono-runtime installed. To support VB.Net, you need
an additional package (which contains Microsoft.VisualBasic.dll), it's
called mono-basic IIRC.
So simple sudo apt-get install mono-basic should give you the missing file.
(or was it mono-vbnc? Can't check it, sold my raspberry-pi some month
|Running C# Binary on Linux using mono-devel|
The only viable solution is to ask the company who supplied the DLL if they
have a Linux library suitable for your particular distribution (Ubuntu
version and Linux kernel version) that you can link against.
Each platform has different ways of handling native code libraries, and
these libraries are not compatible between platforms. It is therefore not
possible to link against a platform-specific library (a Windows DLL for
instance) in a platform-neutral fashion.
MONO is a cross-platform re-implementation of the .NET runtime. It is
intended to provide the ability to write .NET applications for non-Windows
operating systems, and provides a reasonably consistent framework to enable
you to easily port existing .NET applications. It is not a Windows
emulator so it cannot use Windows-specif
|Writing to FIFO FILE, Linux & Mono(C#)|
SOLUTION!!!! PI-BLASTER WORKS :D :D (lost 2 days of life because of this)
write.flush was critical, btw.
static class PWM
static string fifoName = "/dev/pi-blaster";
static FileStream file;
static StreamWriter write;
file = new FileInfo(fifoName).OpenWrite();
write = new StreamWriter(file, Encoding.ASCII);
public static void Set(int channel, float value)
string s = channel + "=" + value + "
|Mono Consume WCF Service Fail ServiceClient Linux|
Turns out there was an inner load exception and I had a Npgsql.VisualStudio
DLL in my bin. Once i have removed that everything worked. Reflections
failed to load that DLL because of missing references.
|display RGB image both in windows and mono linux platform|
The problem is not about Mono and the Bitmap class.
The problem is where your image data comes from: you mention it comes from
a USB device. But how do you access your device from your .NET code? Seems
like you're using IntPtr, which leads me to think that you're using
P/Invoke is inherently a technique that is not cross platform. You should
stick to managed code if you want your program to work across platforms
(Linux and Windows) with no specific-platform code.
UPDATE: You mention that you have a ".so" library to access the
platform-specific functionality on Linux. Then this may be the bit that is
not working. You should post a brand new question on stackoverflow with the
code you're using to P/Invoke that library in Linux.
|GetWebResponse() throws timeout exceptions after a few requests on Mono/Linux|
I would try these possible alternatives to try to solve the problem:
Upgrade Mono to 3.0.x. There have been a lot of fixes in the last months
If the above doesn't help, try Mono 3.2 (as it defaults to use a new
garbage collector, much faster, called SGEN).
If the above doesn't help, build your own Mono (master branch), as this
important pull request has been merged recently.
If the above doesn't help, use the "--server" flag when calling your mono
executable (this feature is only available in the last version of mono,
which you need to compile from the master branch).
If all the above doesn't help, then CC yourself in this bug, as I think
I'll have time in August to implement a fix for it, and maybe it helps you.
|tutorial that install couchnode on couchbase/mac os x&linux|
I am using mainly Mac and it is working perfectly.
The doc mention the Mac using http://mxcl.github.io/homebrew/ :
brew install libcouchbase
Then you just need to do
npm install couchbase
|SIGSEGV and mono crash issue while running .NET binary using mono|
Try this: Disable increasing amounts of your own/application code until the
error goes away. Then refine, with smaller steps, to see which part/line
of your code is causing this.
If in the end, there is absolutely no own/application code left, play with
the configuration, version, compiler options, of the libraries you're
Sorry I can't give you a detailed answer, but I HTH. Good luck!
|Testing Windows DOTNET Service on Linux using mono-service|
If you have installed mono using sudo apt-get install mono-complete,
you might want to look at the mscorlib.
Mono take mscorlib.dll 2.0 instead of 4.0
Unable to run .net app with Mono - mscorlib.dll not found (version
might be of use.
|Can't install tutorial content for javaee7 tutorial with updatetool|
Download and install the Java EE 7 SDK to get the Tutorial. The SDK
installer will install and configure the Update Center and the Tutorial.
The GlassFish 4.0 ZIP file isn't a supported configuration (but you can add
the Tutorial to GlassFish 4.0 standalone using these instructions.
In your case, it appears there's something wrong with the 32-bit
compatibility libraries on 64-bit Linux when you run pkg.
|XSLTemplate in Mono|
For running an xsl[t] transformation over xml, you should be able to use
either System.Xml.Xsl.XslTransform or System.Xml.Xsl.XslCompiledTransform
from System.Xml.dll. The API should be largely identical to the Microsoft
|CSS styling for Mono C#|
I think Pixate tries to do this.
No idea how good it is though.
Logs show that there seems to be an issue with creation of UI window panel
as the system font the application is trying to look up for could be found
on your mac.
There could be 2 main reasons why this could happen:-
The latest version of mountain lion (as you point it out to be 10.8.4) does
not have that font in their font library
The application was created only for windows and developer didn't port it
to /tested on mac thoroughly.
if you need to extract your iphone data in urgency then its better to try
using a different application which has made for mac and does not require
Have a look at Total Saver application. It works on mac and windows without
the need for you to install any 3rd party frameworks (mono). You'll need
JRE (Java Runtime Environment) though.
|Running Mono 3.2.0 with .NET MVC 4|
If you want to run MVC4 on Mono, you need to use some Microsoft dlls which
are not provided by Mono at this time.
A word of caution - Taking a cursory look at the Mono source, there appears
to be methods and classes in the MC4 source that do not exist in the 3.2.0
build. There may be features that are broken. The site I am running is for
all intents and purposes an MVC3 site built against the latest dlls.
Microsoft DLLs to copy
System.Web.Abstractions - 4.0
System.Web.Helpers - 2.0
System.Web.Mvc - 4.0
Once you copy over the dlls, if you're still having problems you may have
to do some detective work if the above fix doesn't work. If you get an
error message saying that Mono can't find the DLL, it's usually one of
Is doesn't have the dl
|Mono mkbundle on OSX|
It looks like the pkg-config tool is not found. Maybe it's not in the
Do you have a 'pkgconfig' directory somewhere? It should be a subdirectory
of your Mono installation.
Try to see if you have a path looking like
If yes, point the PKG_CONFIG_PATH environment variable to this path, you
can specify it directly when running your mkbundle command (this is just an
|What Happened to Mono 2.11.X?|
Everything I have seen on their list is that the last stable release is the
2.10.x, they will be maintaining it for about 6 months and are encouraging
everyone to use the 3.0 branch even though it is still stated as beta.
From above link:
Mono 3.0 is an update to Mono 2.10 based on the master branch of github,
it is not a minor upgrade to 2.10. Mono 3.0 was released on October 18th
We will continue to bug fix and update Mono 2.10 for another six months
for users that can not upgrade to Mono 3.0.
New Microsoft Open Source Stacks
We now include the following assemblies as part of Mono from
Microsoft's ASP.NET WebStack:
|Linux users', specifically Apache, permissions settings, [Linux noob :]|
usually any daemon will need to access a number of ressources.
it is therefore good practice to run each daemon under a special
user:group, rather than nobody:nogroup.
traditionally (e.g. on Debian systems) apache runs as www-data:www-data.
finally, user permissions take precedence over group permissions (which in
turn take precedence over other permissions).
this means that a directory where the user does not have write perms but
the user's group can write is effectively r/o for that user (but not for
other members of the group)
|Exec(Linux). How it functions internally? Linux executable attributes(rlimit)|
The RLIMIT_CORE is used to place a limit on the amount of info that
coredump is allowed to produce, before it is aborted. Once this limit is
hit, no more info is logged and the message Aborting Core is logged to the
From the man page of core :
A process can set its soft RLIMIT_CORE resource limit to place an upper
limit on the size of the core dump file that will be produced if it
receives a "core dump" signal.
Use setrlimit() to configure RLIMIT_CORE to a larger value to obtain
The most common format of executables/shared-objects is ELF. On Linux, the
dynamic loading and linking of these shared-objects is performed by ld.so
ld.so is loaded in the address space of a newly created process (by exec in
this case) and executed first. This is possible as
|Purpose of Curly Brace Usage of C Code found in Linux (include/linux/list.h)?|
This is a GNU language extension known as a statement expression; it's not
|Write C++ on Windows but use Linux System calls through a Linux emulator|
You've already tagged your question with Cygwin. That seems like the best
solution for what you want. Cygwin is basically a collection of programs
which emulate a GNU/LInux environment through the use of a
DLL (cygwin1.dll) which acts as a Linux API layer providing
substantial Linux API functionality.
Here's the link to the documentation for its API
Edit: Most of the Cygwin source code that I've looked at is written in C++
and makes system calls using MS Windows API to do provide the *nix
emulation. The source is well written and very readable (even to to a
non-C++ programmer such as myself). I think using Cygwin would be a good
transition from programming on Windows to a GNU/Linux environment.
|What's a good way to set up Closure Compiler on Linux? Or, where should Java .jar's live on a Linux?|
If you using the java command directly, then you'll have to provide a path
to the jar in question. It's probably easier to place the jar in one place
and create a shell script that handles the invocation and jar path.
|How to turn a Linux application in C/C++ into a Desktop Enviroment for a Linux distro?|
You either want to
create a boot loader, or
you want to replace the 'shell'.
This would be governed by per-user or global xinit and Xsession files.
|Mono android not working?|
Start Android SDK Manager either from inside Visual Studio or from the
location "C:UsersDellAppDataLocalAndroidandroid-sdk oolsandroid.bat".
Once its done loading packages... checkmark "Android 2.2 (API8)" to install
support and your error will be resolved.
Alternatively, if you are not planning to support Android 2.2 and are fine
with the latest Android version, then in Visual Studio, go to Project
Properties >> Application and change the API to whatever API you want.
|Running Umbraco / Mono on OS X|
I fairly sure you can't run Umbraco on OSX. However, there are members of
the community working on Mono-specific ports of Umbraco. Check out
Strawberry Fin's blog for details:
|AWS SDK using Mono Timeout error|
And immediately after posting this I found this old bug that lead me to the
The problem was from my including an old Mono.Security.dll that was a
requirement for Thrift. By deleting that out of date dll I was able run
|Mono 2.10.12 VB.Net compiler not found|
I don't know why, but mono-basic is missing in the package 2.10.11. I think
it's a bug and no one at Xamarin noticed it, because they are all using C#.
Download Mono 2.10.9 from http://mono-project.com/OldReleases
|Start Application only once (Mono)|
I have been able to fix it with a file system watcher:
FileSystemWatcher fswRunning = new
FileSystemWatcher(Path.GetTempPath() + "AudioCuesheetEditor");
fswRunning.Filter = "*.txt";
fswRunning.Changed += delegate(object sender, FileSystemEventArgs
log.debug("FileSystemWatcher called Changed");
if (pAudioCuesheetEditor != null)
log.debug("pAudioCuesheetEditor != null");
fswRunning.EnableRaisingEvents = true;
Boolean bAlreadyRunning = false;
Process arrPRunning = Process.GetProcesses();
foreach (Process pRunning in arrPRunning)
Boolean bCheckProcessMatch = false;
|Null reference in C# Mono / GTK#|
The immediate problem is that you got the arguments to InserAfter mixed up.
First one should be the node to insert and the second one should be the
reference node. The root element has no children yet, so LastChild is going
to be null and hence the exeption. Using null as a reference point is
valid, but not as a node to add.
There are other issues but you said you are able to fix those, so there you
|mono custom DLL load|
You might want to see where your application is actually looking for the
file, you can do this by setting the MONO_LOG_LEVEL environment variable
export MONO_LOG_LEVEL=debug; mono YourApp.exe
|Ilnumerics performance under Mono vs VS|
Execution performance vastly depends on the concrete problem and its
implementation. I do not want to give a general statement about the
performance of the one compared to the other. In the past mono did tend to
be a little behind the CLR. On the other hand mono has improved as well and
now offers SIMD vector support (even if ILNumerics doesn't make use of it
I suggest, you implement your solution and test it on several platforms /
runtimes. I would be interested in your results as well!
One more note: mono can be used within Visual Studio as target platform.
The Xamarin team offers a corresponding VS plugin. I haven't tested it
though. Also, if you are into visualizations, keep in mind, mono favorites
GTK over Windows.Forms. The ILNumerics visualization controls, however, use
|Audio library that can be used for Mono|
There was a question on SO about audio reading library for Mono: Please
recommend a Mono (i.e. C#) audio reading library
Also there is a .NET bindings for PortAudio library that you can try:
|Why, in Mono, won't WebRequestMethods.Ftp use the path in my URI?|
Work around: append a slash to the end of the path and it will work.
This was submitted as a bug in Mono in June 2011:
Bug 698551 - FtpWebRequest: ListDirectory/ListDirectoryDetails discard the
Opened: 2011-06-07 14:35 UTC Last modified: 2011-06-07 14:35:02 UTC
|Mono 2.10 Reflection error|
It feels weird to do something, fix it and don't have a clue what was wrong
initially. However this was fixed with the upgrade on Mono Develop 3.1
In case someone else happens to have this issue, the answer is here:
|Mono version confusion|
According to the release notes, async support was first introduced with
Mono 3.0, along with a full C# 5.0 compiler. So 2.10.8 won't have
this–you need to use version 3.0 or later.
I see elsewhere online that the 2.11 preview release began adding support
for async, but I'm not sure if this is still available for download.
Presumably, they've added more C# 5.0 features and upped the version number
to 3.0, which is now the beta release of interest.
|Measuring how much memory is available in C# + Mono|
Place that after your first "NextValue" call (you can toss the very first
NextValue return value) and follow it with your line:
float availbleRam = ramCounter.NextValue();
Performance counters need time to measure before they can return results.
Confirmed this works in Windows with .net 4.5, unsure about Linux with
|How can I get an ASP.NET MVC site running on Mono?|
It's very easy. Use MonoDevelop IDE http://monodevelop.com/.
Check this page
|Enum bit operations with Mono|
I can't read it as anything else than that Mono is in the right, the C#
spec has this to say;
Enum values and operations
Each enum type defines a distinct type; an explicit enumeration
conversion (§6.2.2) is required to convert between an enum type and an
integral type, or between two enum types
Enumeration logical operators
Every enumeration type E implicitly provides the following predefined
E operator &(E x, E y);
E operator |(E x, E y);
E operator ^(E x, E y);
That is, the logical operators are only defined enum*enum, and to use an
integral type in a logical expression with an enum, it should require an