You are here


Ivan Radovanovic's picture

Running Mono with NGINX

Important thing (if using regular expressions in server names configuration in NGINX) is to make sure to pass $host as SERVER_NAME in fastcgi_params - like:
fastcgi_param SERVER_NAME $host;

Default value of $server_name will pass regexp and that will cause Mono to crash while parsing request URI.

Ivan Radovanovic's picture

Importing SSL certificates into Mono store

Run cert-sync --user /etc/ssl/cert.pem. Omit --user to synchronize for entire system (note that this installs them in /usr/share/.mono rather than /usr/local/share/.mono).

Without this you might be experiencing errors like "Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED" or similar

Ivan Radovanovic's picture

Mono 4.8.1 with TLS 1.2 on FreeBSD

TLS 1.2 is not enabled in default version of Mono 4.8.1 port for FreeBSD.

Ivan Radovanovic's picture

Compiling latest versions of monodevelop on FreeBSD

Clone their repository from git (tarballs created by them fail way too often)

git clone

Ivan Radovanovic's picture

Running unit tests from console

If you created and compiled unit tests using MonoDevelop you need to copy several dlls to the same directory before you can use nunit-console with compiled dll. Those libraries can be found /usr/local/lib/monodevelop/AddIns/NUnit directory

Ivan Radovanovic's picture

Installing monodoc on FreeBSD

I don't have any idea if mono-tools is still supported package, but its build is badly broken at least on FreeBSD. Anyway, the only tool I find really useful there is monodoc, which luckily can be installed manually like this:

Ivan Radovanovic's picture

Running ASP.Net with Lighttpd on FreeBSD

As a first step for running applications using lighttpd webserver on FreeBSD you need to download source for xsp from mono project site. Here follow instructions for patching and compiling this source in order to run (hopefully) better on FreeBSD. These instructions apply to xsp-2.10.2

You need to patch following files
1. src/Mono.WebServer.FastCgi/Record.cs (patch Record.cs < Record.cs.diff)
2. src/Mono.WebServer.FastCgi/UnmanagedSocket.cs
3. src/Mono.WebServer.FastCgi/main.cs

Ivan Radovanovic's picture

Compiling Mono 2.10.9 on FreeBSD 8

Mono sources as downloaded from original website unfortunately can't be compiled out of the box on FreeBSD 8 amd64. In order to make them compile it is necessary to modify several files:

1. mcs/class/System/System.IO/KeventWatcher.cs (patch KeventWatcher.cs < KeventWatcher.cs.diff)
2. mono/metadata/appdomain.c
3. mono/utils/mono-sigcontext.h

After this mono should compile without problems

There is port directory attached (mono2.10.9.tar.bz2)

Subscribe to RSS - mono