[Mono-aspnet-list] Unexpected web service behavior
the.assimilator at gmail.com
Mon Aug 17 09:28:13 EDT 2009
I'm running Mono 1.9.1 on Apache 2.2.3 under CentOS 5.2. DocumentRoot is set
to /var/www/html and I have the following directories/files:
MyWebService contains the live version of my web service that is in
MyWebService-deploy contains the latest version of the web service that
should be made live ASAP, I created the directory for last-line testing
The problem is that Apache (or mod_mono?) is refusing to accept the
existence of MyWebService.asmx in the MyWebService-deploy directory. If I
browse to that file via
I get an ASP.NET error "Server error in /MyWebService application" and a
whole lot of blah about updating <customErrors> in my web.config.
So I modified
<customErrors mode="Off" />
but it didn't do anything, I still got the "Server error" page!
Then I re-looked at the error message and saw that it was referring to the
/MyWebService (and NOT /MyWebService-deploy) directory. So I changed
and when I next attempted to browse to the "deploy" web service, was greeted
with an error 404 telling me that "/MyWebService-deploy/MyWebService.asmx"
was not found.
So there are 2 problems here:
1. Why is the "deploy" web service looking at the live one's web.config
instead of its own?
2. Why is a 404 error being spat out when the file in question is there,
readable, etc. etc.?
A bit of extra info - Apache's access_log shows the attempt to access
http://my-server-ip/MyWebService-deploy/MyWebService.asmx as a 404 and
nothing appears in its error_log when the "Server error" page is displayed.
Is this something that'll be solved with an upgrade or is the Mono compiler
hard-coding directory references? I'm rather confused at this moment and
some insight would be most appreciated...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-aspnet-list