[Mono-list] ASP .NET Application

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


Nicolas Cornu a écrit :

> 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
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

Bin directory contain: everquest2-fr.dll and Npgsql.dll
If i run XSP on the website directory i get this error:


    /Compilation Error/

*Description: *Error compiling a resource required to service this 
request. Review your source file and modify it to fix this error.

*Error message: */tmp/root-temp-aspnet-0/ab3f0828/26794.0.cs(26,27) : 
error CS0433: The imported type `Everquest2.Global' is defined multiple 
times




More information about the Mono-list mailing list