[Mono-aspnet-list] APP_CODE classes not work

puap pfoster at puap.com
Thu Sep 29 19:08:22 EDT 2011


This wasn't working for me as well on my linux/apache/mod_mono setup but I
finally got it to work.

In order for the App_Code directory to be used/recognized you need to let
mod_mono know that it is a MonoApplication in your httpd.conf file. I put
mine at the end of the file and it started working.

Alias /appname "/home/username/appname"
MonoDebug appname true
MonoSetEnv appname MONO_IOMAP=all
MonoApplications appname "/appname:/home/username/appname"
<Location "/appname">
  Allow from all
  Order allow,deny
  MonoSetServerAlias appname
  SetHandler mono
</Location>

replace appname with your application name and /home/username/appname where
you have your mono/asp app set up. Inside the /home/username/appname you can
have an App_Code folder with .cs files in it and they will be compiled and
included in the app.

I haven't found a way to get this working with xsp2 on windows yet if anyone
has a solution for that.


--
View this message in context: http://mono.1490590.n4.nabble.com/APP-CODE-classes-not-work-tp1539279p3858063.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list