[Mono-list] RE: RE: RE: Unable to deploy an ASP.NET application

Bradley, Peter PBradley at uwic.ac.uk
Thu Feb 23 08:12:08 EST 2006


Sorry to follow up on my own post, Jochen.

I've not checked my /etc/apache2 files yet.  I'll try to do it before I
leave work tonight.

In your final paragraph, where you say, "(btw. the dll should be in
/usr/lib/xsp/test/bin and you have to adjust the MonoExecutablePath to
your destination)", I assume you're just saying that the bin directory
should be immediately below the directory containing the aspx pages.  If
that's what you mean, then yes, that's what I have.

Cheers


Peter

-----Original Message-----
From: winzen at online.de [mailto:winzen at online.de] 
Sent: 23 February 2006 12:38
To: Bradley, Peter
Subject: AW: RE: RE: Unable to deploy an ASP.NET application

Hi Peter,

i have the following configuration:

1. In the directories "/etc/apache2/mods-enabled" and
"/etc/apache2/mods-available" there's a file "mono.load" with this
content: 
#########################################
LoadModule mono_module /usr/lib/apache2/mod_mono.so
MonoApplicationsConfigDir "/etc/apache2/mod_mono-applications"
##########################################

2. In the directory "/etc/apache2/mod_mono-applications" there's a file,
let's call it "AspNetOnApache" with content (modified for your
settings):
##########################################
<apps>
<web-application>
<name>AspNetOnApache</name>
<vhost>AspNetOnApache</vhost>
<vport>80</vport>
<vpath>/</vpath>
<path>/usr/lib/xsp/test</path>
</web-application>
</apps>
##########################################

3. In the directory "/etc/apache2/" there's a file "mod_mono-conf" with
content:
##########################################
<IfModule !mod_mono.c>
    LoadModule mono_module /usr/lib/apache2/mod_mono.so

    AddType application/x-asp-net .aspx
    AddType application/x-asp-net .asmx
    AddType application/x-asp-net .ashx
    AddType application/x-asp-net .asax
    AddType application/x-asp-net .ascx
    AddType application/x-asp-net .soap
    AddType application/x-asp-net .rem
    AddType application/x-asp-net .axd
    AddType application/x-asp-net .cs
    AddType application/x-asp-net .config
    AddType application/x-asp-net .dll
    DirectoryIndex index.aspx
    DirectoryIndex Default.aspx
    DirectoryIndex default.aspx
</IfModule>
##########################################

4. In the directories "/etc/apache2/sites-enabled" and
"/etc/apache2/sites-available" there's a file "AspNetOnApache" with this
content (modified for your settings, please check): 
##########################################
<VirtualHost *>
        ServerName http://linmono.uwic.ac.uk/AspNetOnApache
        ServerAlias AspNetOnApache

        DocumentRoot /usr/lib/xsp/test

        AddType application/x-asp-net .aspx ashx .asmx .ascx .asax
.config
        MonoApplications "/AspNetOnApache:/usr/lib/xsp/test"
        MonoExecutablePath "/opt/mono-1.1.13.2/bin/mono"

        <Directory /usr/lib/xsp/test>
                SetHandler mono
                DirectoryIndex default.aspx
        </Directory>

        <Location /mono>
                SetHandler mono-ctrl
        </Location>
</VirtualHost>
##########################################

That's all i can see for now. I'm not sure if everything will work due
to my modifications. I hope i did not confuse you more than necessary
;-). And i hope even more that you can figure out how to get things
working.
(btw. the dll should be in /usr/lib/xsp/test/bin and you have to adjust
the MonoExecutablePath to your destination)

Have a nice day

Jochen Winzen



More information about the Mono-list mailing list