[Mono-list] mod_mono won't recompile

Brenton Partridge bapartridge at gmail.com
Sat Oct 13 14:35:16 EDT 2007

Hi all,

I'm running Mac OS X 10.4.10, and I installed mod_mono from CVS  
source earlier this week to develop an ASP.NET application.  It's  
working great, but there's one annoyance that is really bugging me.   
When I edit one of the .cs files that are included in my index.aspx  
via <script> tags, mod_mono (either the server or the Mono runtime)  
doesn't recognize that the files have been changed and refuses to  
recompile them, instead using its own cached scripts.  So if I have  
compile errors and I fix them, refreshing the page does nothing; the  
compile errors still show up where they previously were.  Running  
touch on any/all of the files sometimes forces the recompile, but  
only sometimes, and very arbitrarily.  The only foolproof way to  
force the recompile is to gracefully restart my entire Apache  
server.  Is there any way to clear the cache or otherwise tell  
mod_mono that the files have been updated?  I think that the ideal  
solution would be that if the mod_mono server detects a compile  
error, it would erase its cached version of that file, since the  
developer would obviously want to fix something.  Thanks for your help!

Brenton Partridge

More information about the Mono-list mailing list