The standard default-server.conf
contains the following directive (along with the comments):
# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
IncludeOptional /etc/apache2/conf.d/*.conf
In my openSUSE 13.1 installation, Apache comes with Mono. Though mod_mono
is not loaded in /etc/sysconfig/apache2
(a2dismod mono
command), the /etc/apache2/mod_mono.conf
always loads Mono runtime and associates, in particular, .cs
files to Mono.
Now, when I commit C# code files, with .cs
extension, Apache by default lets Mono handle those requests, which ultimately causes the following exception that can be captured only using Wireshark:
[System.ArgumentException]: Directory does not exists
Parameter name: value
at System.IO.FileSystemWatcher.set_Path (System.String value) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:set_Path (string)
at System.Web.HttpRuntime.SetupOfflineWatch () [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest req) [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime.ProcessRequest (System.Web.HttpWorkerRequest wr) [0x00000] in <filename unknown>:0
at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x00000] in <filename unknown>:0
An ASP.NET exception in a Subversion request smelled enough bad to let me investigate
Ultimately
I simply commented out the above Apache directive and commited without problems.