[Mono-list] ASP.NET Autoconfiguration

Chris Aitken chris at ion-dreams.com
Wed Nov 16 04:44:31 EST 2005


> Questions)
> 
> Are you trying to do vhosts?

I have 2 port based vhosts (http & https).
I am running debian sarge. I have removed the include line for my vhosts,
and pasted the relevant parts into my apache2.conf file. It is available at:
http://chimera.ion-dreams.com/apache2conf

As I am using the monobundle installer, mod_mono needs to be shown where the
various files are, so in my apache2.conf file I have to have the following:

MonoRunXSP True
MonoPath "/opt/mono"
MonoAutoApplication enabled
MonoExecutablePath "/opt/mono/bin/mono"
MonoServerPath "/opt/mono/lib/xsp/1.0/mod-mono-server.exe"
AddHandler mono aspx ashx asmx ascx asax config ascx 

Without this, mod_mono is looking for the files installed by the standalone
XSP, and error.log shows:

[Wed Nov 16 09:25:54 2005] [error] Failed running
'/usr/lib/pkgconfig/../../bin/mono
/usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe --filename
/tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null)
(null) (null) (null)'. Reason: No such file or directory

> Exactly what version of Mono/mod_mono are you running?

1.1.10-2 (Fedora 3, alien'd to a deb).

> >From my understanding, someone correct me if I'm wrong, 
> MonoAutoApplication replaced the need to put MonoApplications 
> or AddMonoApplication lines in your config file.

With ONLY MonoAutoApplication enabled , error.log shows:

[Wed Nov 16 09:25:54 2005] [error] Not running mod-mono-server.exe because
no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
specified.

No ASP.NET pages are served.

If I add
AddMonoApplications default "/ASPNET:/var/www/ASPNET"
The error.log file shows:

[Wed Nov 16 09:40:50 2005] [error] Failed running
'/usr/lib/pkgconfig/../../bin/mono
/usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe --filename
/tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null)
(null) (null) (null)'. Reason: No such file or directory
Another mod-mono-server with the same arguments is already running.

But ASP.NET pages are served.

I hope this helps!

It is clear to me that the instructions need to include a paragrapg on
setting up ASP.NET pages with the mono installer, as all the files default
install to /opt/mono-1.1.X, whereas with an RPM install of XSP, files are
installed in an alternate location.

Chris



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Mono-list mailing list