[Mono-list] Configuration of apache2

Kfir Lavi lavi.kfir at gmail.com
Sun Oct 22 10:08:07 EDT 2006


Hi,
Here is my config file for Apache:

Alias /alex "/home/alex/www/test"
AddMonoApplications default "/alex:/home/alex/www/test"
MonoExecutablePath default /usr/bin/mono
MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe

<Location /alex>
  SetHandler mono
</Location>

I'm using Debian.
Why should I add
MonoExecutablePath default /usr/bin/mono
MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe

This paths are regular, so shouldn't they work automatically?

Also with this configuration I get this error when loading page
http://server/alex/WebForm1.aspx

Server error in '/alex' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.ComponentModel.Win32Exception: Some sort of w32 error occurred: 5
  at System.IO.InotifyWatcher.StartMonitoringDirectory
(System.IO.InotifyData data, Boolean justcreated) [0x00000]
  at System.IO.InotifyWatcher.StartDispatching
(System.IO.FileSystemWatcher fsw) [0x00000]
  at System.IO.FileSystemWatcher.Start () [0x00000]
  at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean
value) [0x00000]
  at (wrapper remoting-invoke-with-check)
System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool)
  at System.Web.HttpApplicationFactory.CreateWatcher (System.String
file, System.IO.FileSystemEventHandler hnd,
System.IO.RenamedEventHandler reh) [0x00000]
  at System.Web.HttpApplicationFactory.GetApplication
(System.Web.HttpContext context) [0x00000]
  at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000]



Thanks for the help.
Kfir


More information about the Mono-list mailing list