
FAQ

Installation and troubleshooting

If you get a blank page or a stack trace instead of the page you expected,
something went wrong. To find out what, the most useful place to look at is the 
Apache error_log file. If you installed Apache from source as explained it
will be in /usr/local/apache2/logs, if you use Red Hat, it will be in 
/var/logs/httpd/

1) I get an error about a .wapi/ directory

Mono creates that directory in the home of the current user. When you are running
Mono inside Apache, it tries to create that directory in the home of the user
Apache is running as. This will be solved in future releases, but for now the following hack
should work:

If you get something like

** (process:2899): CRITICAL **: : shared file [/var/www/.wapi/shared_data-0] open error: No such file or directory

Then you need to issue the following commands, as root

mkdir /var/www/.wapi/
chown apache.apache /var/www/.wapi
chmod 700 /var/www/.wapi


2) I get an error about a missing tmpxxxxxxxxx.dll

Something along the lines of

Unhandled Exception: System.UnauthorizedAccessException: Access to the path "./tmp1632595207.dll" is denied.

This is likely because the ASP page compiler does not have permission to create that intermediate file,
probably because the user apache is running as does not have permission to write in that directory.

The following should fix it

chown -R apache.apache /home/user/mono/install/xsp/server/test

3) System.Web.HttpException: String returned by HttpRuntime.GetResourceStringFromResourceManager

Make sure a valid machine.config file is present 
As of Mono 0.18, the rpm version installs it in /etc/mono/machine.config,
but the runtime expects it in /usr/etc/mono/machine.config, make sure you copy it there

4) I just get a blank page, and no error in the error_log

This is a bug that needs to be tracked down. For now try commenting the following in the machine.config file
Remove or comment out the following from the machine.config file

 <section name="authentication" type="System.Web.Configuration.AuthenticationConfigHandler, System.Web" />

 <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
 <authentication mode="Forms">
     <forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
         <credentials passwordFormat="Clear">
            <!--<user name="gonzalo" password="gonz"/>-->
         </credentials>
     </forms>
 </authentication>


