[Mono-list] ASP .NET Application

Nicolas Cornu nicolas.cornu at cyber-developpement.com
Sun Jan 15 16:14:07 EST 2006


Hello,

I have troubles setting up an asp .net application.
A aspx page work fine but i don't know how to make an asp .net application
i would like to use Global.asax file and the Global class and object.

I did compil all .cs files into a library and put it in the subdirectory 
bin of my website
but i get an error.

------------------------------------------------------------
With this config without using global.asax the website work:
------------------------------------------------------------
<VirtualHost 192.168.0.2:80>
ServerName www.everquest2-fr.com
DocumentRoot /var/www/everquest2-fr.com/httpdocs
#Alias "/" "/var/www/everquest2-fr.com/httpdocs"
#AddMonoApplications eq2 "/:/var/www/everquest2-fr.com/httpdocs"
#<Directory "/var/www/everquest2-fr.com/httpdocs/">
#allow from all
#DirectoryIndex index.aspx index.html index.php
#Options +Indexes
#</Directory>
#<Location />
#  SetHandler mono
#  Allow from all
#</Location>
<Location /mono>
  SetHandler mono-ctrl
  Allow from all
</Location>
ServerName www.everquest2-fr.com
</VirtualHost>

------------------------------------------------------------
With this config without using global.asax the website d'ont work
i get an Internal server error:
------------------------------------------------------------
<VirtualHost 192.168.0.2:80>
ServerName www.everquest2-fr.com
DocumentRoot /var/www/everquest2-fr.com/httpdocs
Alias "/" "/var/www/everquest2-fr.com/httpdocs"
AddMonoApplications eq2 "/:/var/www/everquest2-fr.com/httpdocs"
#<Directory "/var/www/everquest2-fr.com/httpdocs/">
#allow from all
#DirectoryIndex index.aspx index.html index.php
#Options +Indexes
#</Directory>
<Location />
  SetHandler mono
  Allow from all
</Location>
<Location /mono>
  SetHandler mono-ctrl
  Allow from all
</Location>
ServerName www.everquest2-fr.com
</VirtualHost>

----------------------------------------------
I disabled SE Linux, i got:
 avc:  denied  { write } for  pid=15001 comm="httpd" 
name="mod_mono_server_global" dev=hdc1 ino=68848 
scontext=root:system_r:httpd_t tcontext=root:object_r:tmp_t tclass=sock_file

I would like to know what i need to do to have an ASP .NET 1 application 
working, i prefer not having to recompil the project due to the fact i 
develop the site on windows on another computer.

Thanks in advance.

CN


More information about the Mono-list mailing list