I want to put further in this after the workaround that i have given above ,every time i restarted my computer it would give me System.Web.HttpException and the apache error log would show that mono could not write to /var/www/.mono because of permissions , i did another work around and now even after restart it works fine . the work around is given below.
I changed MonoPath from /usr/lib/mono/4.5 to /usr/lib/mono/gac in etc/mono-server4/mono-server4-hosts.conf
and i manually made .mono directory at /var/www and gave apache read and write access as well as execution access to /var/www/.mono .
I want to put further in this after the workaround that i have given above ,every time i restarted my computer it would give me System. Web.HttpExcepti on and the apache error log would show that mono could not write to /var/www/.mono because of permissions , i did another work around and now even after restart it works fine . the work around is given below.
I changed MonoPath from /usr/lib/mono/4.5 to /usr/lib/mono/gac in etc/mono- server4/ mono-server4- hosts.conf
and i manually made .mono directory at /var/www and gave apache read and write access as well as execution access to /var/www/.mono .