w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
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.

Categories : Dotnet

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 visit: http://www.mono-project.com/Compatibility Moreover there exists Mono tools which integrates with VS: http://www.mono-project.com/GettingStartedWithMonoTools

Categories : C#

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 https://github.com/adamhathcock/sharpcompress

Categories : C#

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 ago...)

Categories : Dotnet

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

Categories : C#

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. namespace PrototypeAP { static class PWM { static string fifoName = "/dev/pi-blaster"; static FileStream file; static StreamWriter write; static PWM() { file = new FileInfo(fifoName).OpenWrite(); write = new StreamWriter(file, Encoding.ASCII); } //FIRST METHOD public static void Set(int channel, float value) { string s = channel + "=" + value + " "; Console.WriteLine(s); write.Write(s); write.Flush(); } } }

Categories : C#

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.

Categories : C#

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. 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.

Categories : C#

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 around WebRequests. 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.

Categories : Linux

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

Categories : Node Js

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 using. Sorry I can't give you a detailed answer, but I HTH. Good luck!

Categories : C

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 mismatch?) might be of use.

Categories : C#

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.

Categories : Java

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 implementations: mono, XslCompiledTransform mono, XslTransform microsoft, XslCompiledTransform microsoft, XslTransform

Categories : C#

CSS styling for Mono C#
I think Pixate tries to do this. https://github.com/Pixate/MonoTouch-Pixate No idea how good it is though.

Categories : C#

mono iPhoneBackupExtractor.exe
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 mono UPDATE 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. You c

Categories : Osx

Running Mono 3.2.0 with .NET MVC 4
Success 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 three reasons: Troubleshooting Is doesn't have the dl

Categories : Asp Net

Mono mkbundle on OSX
It looks like the pkg-config tool is not found. Maybe it's not in the default paths. 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 /Library/Frameworks/Mono.framework/Versions/XXXX/lib/pkgconfig 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 example): $ PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/XXXX/lib/pkgconfig mkbundle ....

Categories : Osx

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. http://www.mono-project.com/Release_Notes_Mono_3.0 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 2012. 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: System.Net.Http.Formatting.dll System.Web.Http.dll System.Web.Razor.dll System.Web.We

Categories : C#

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)

Categories : Linux

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 console. 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 complete coredumps. 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

Categories : Android

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 standard C.

Categories : C

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.

Categories : C++

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.

Categories : Java

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.

Categories : C

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.

Categories : Visual Studio 2010

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: http://www.strawberryfin.co.uk/blog/2013/02/02/umbraco-6-is-out-mono-roadmap/

Categories : Osx

AWS SDK using Mono Timeout error
And immediately after posting this I found this old bug that lead me to the problem 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 without error

Categories : C#

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

Categories : Asp Net

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 e) { log.debug("FileSystemWatcher called Changed"); if (pAudioCuesheetEditor != null) { log.debug("pAudioCuesheetEditor != null"); pAudioCuesheetEditor.getObjMainWindow().Present(); } }; fswRunning.EnableRaisingEvents = true; Boolean bAlreadyRunning = false; Process[] arrPRunning = Process.GetProcesses(); foreach (Process pRunning in arrPRunning) { Boolean bCheckProcessMatch = false;

Categories : C#

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 go.

Categories : C#

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 like this: export MONO_LOG_LEVEL=debug; mono YourApp.exe

Categories : C#

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 yet). 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 Wi

Categories : C#

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: https://code.google.com/p/portaudiosharp/

Categories : C#

Why, in Mono, won't WebRequestMethods.Ftp use the path in my URI?
Update: https://bugzilla.xamarin.com/show_bug.cgi?id=12850 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 filename Opened: 2011-06-07 14:35 UTC Last modified: 2011-06-07 14:35:02 UTC

Categories : C#

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: http://stackoverflow.com/a/16093182/917268

Categories : C#

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.

Categories : C#

Measuring how much memory is available in C# + Mono
Thread.Sleep(1000); 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 Mono.

Categories : C#

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 http://www.integratedwebsystems.com/2011/06/get-mvc3-razor-running-on-mono/

Categories : Asp Net Mvc

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 ...and... Enumeration logical operators Every enumeration type E implicitly provides the following predefined logical operators: 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 explicit cast.

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.