Should I use Mono on a real project?

I’ve used it for a number of internal and commercial projects with great success. My warnings: Write lots of unit tests and make sure they ALL pass under Mono — this will save you a lot of trouble. Unless you absolutely have to, do NOT use their embedding API. It’s damn easy to use, but … Read more

Access to the path “/etc/mono/registry” is denied

Turns out simply creating the folder using mkdir sudo mkdir /etc/mono/registry and setting the right permissions using chmod sudo chmod uog+rw /etc/mono/registry does the trick. However I still don’t understand where such a folder is hidden in Ubuntu and why it doesn’t need to be created there, as well as why it isn’t created automatically … Read more

Mono Project: Why is mono faster than .NET?

This was a discussion about this on the Mono mailing list not too long ago. The reasoning they provided is Mono is extremely optimized under Linux (exactly how did not seem to be mentioned). But Mono is not the only variable here, if you are running Mono on Linux. It’s a different OS, different process … Read more

C# The type or namespace name `List’ could not be found. But I’m importing System.Collections.Generic;

The issue comes from your instantiation of new List(). These also need the generic component: public static List<string> items = new List<string>(); public static List<double> itemsprice = new List<double>(); public static List<double> qu = new List<double>(); That is, there is no type List but there is a generic type List<T>. More information and examples of … Read more

Compiled mono missing default .NET libraries – System.Object is not defined or imported

If there is a warning similar to: /lib/mono/4.5/Microsoft.Common.targets: warning : Unable to find framework corresponding to the target framework moniker ‘.NETFramework,Version=v2.0’. Framework assembly references will be resolved from the GAC, which might not be the intended behavior. You can override the .NET Framework on the command line: xbuild /p:TargetFrameworkVersion=”v4.0″ You can change your solution: <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

Install Mono on Centos 5.5 using YUM

I figured it out. Create a new repository configuration file cd /etc/yum.repos.d vi mono.repo Add the following lines to the file [Mono] name=Mono Stack (RHEL_5) type=rpm-md baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/ gpgcheck=1 gpgkey=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key enabled=1 Update the YUM cache to be on the safe side yum clean all Install the Mono server stack yum install monotools-addon-server The installed binaries will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)