[Mono-aspnet-list] Unexpected web service behavior

The_Assimilator the.assimilator at gmail.com
Mon Aug 17 09:28:13 EDT 2009


Hi all,

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:

/var/www/html/MyWebService/MyWebService.asmx
/var/www/html/MyWebService-deploy/MyWebService.asmx

MyWebService contains the live version of my web service that is in
production use.
MyWebService-deploy contains the latest version of the web service that
should be made live ASAP, I created the directory for last-line testing
purposes.

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

http://my-server-ip/MyWebService-deploy/MyWebService.asmx

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

/var/www/html/MyWebService-deploy/web.config

and added

<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
<customErrors> in

/var/www/html/MyWebService/web.config

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...

TIA!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20090817/f347cea8/attachment.html 


More information about the Mono-aspnet-list mailing list