I was about to file a bug report using Xamarin ... then I met this submitted bug report from a year ago.
https://bugzilla.xamarin.com/show_bug.cgi?id=2876
TL; DR
You need to update the shell script (find with which mono-fastcgi-server4 ) and move mono-fastcgi-server4.exe from /usr/lib/mono/4.0 to /usr/lib/mono/4.5 .
Longer Explanation
As already mentioned, I use the mono-fastcgi-server4 directly from the main canonical source of Ubuntu , which lists these contents of the file
/usr/bin/fastcgi-mono-server4 /usr/lib/mono/4.0/fastcgi-mono-server4.exe /usr/lib/mono/gac/fastcgi-mono-server4/2.10.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe /usr/share/doc/mono-fastcgi-server4/AUTHORS /usr/share/doc/mono-fastcgi-server4/NEWS.gz /usr/share/doc/mono-fastcgi-server4/README /usr/share/doc/mono-fastcgi-server4/README.Debian /usr/share/doc/mono-fastcgi-server4/changelog.Debian.gz /usr/share/doc/mono-fastcgi-server4/copyright /usr/share/man/man1/fastcgi-mono-server4.1.gz
Based on the solution of the error report, I was able to get this working. Essentially, you are editing the shell script used to run fastcgi-mono-server4.exe manually (which should be in /usr/bin ) and moving the .exe file manually ... or ... you can use this small piece of script, which I included in deploy:setup Capistrano script. It uses sed to update the script.
fastcgi=$(which fastcgi-mono-server4) && sudo sed -i.bak -e 's/4\\.0/4.5/' $fastcgi && fastcgi_src='/usr/lib/mono/4.0/fastcgi-mono-server4.exe' && fastcgi_dest='/usr/lib/mono/4.5/fastcgi-mono-server4.exe' && if [ -f "$fastcgi_src" ]; then sudo mv $fastcgi_src $fastcgi_dest; fi;
This report also seems related https://bugzilla.xamarin.com/show_bug.cgi?id=3582
source share