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

Bradley, Peter PBradley at uwic.ac.uk
Fri Feb 24 10:05:54 EST 2006


Wehe!  I now have a working system:

http://linmono.uwic.ac.uk/MSc/Initial.aspx

I stopped Apache2 and got XSP to listen on port 80, and it seems to work
just fine.

Many thanks to Jochen and Robert who helped me with this.

It may seem a bit greedy, but does anyone have any idea as to what I
need to do to get the application to work using Apache?  Standalone XSP
is a solution, but it's not the ideal one unfortunately.

If there are any Apache gurus out there who could tell me how I should
configure it, I'd be extremely grateful - or if anyone knows of another
forum where I'd be, perhaps, more likely to get an answer.

Best regards


Peter

-----Original Message-----
From: Robert Jordan [mailto:robertj at gmx.de] 
Sent: 23 February 2006 13:20
To: Bradley, Peter
Subject: Re: [Mono-list] Re: Unable to deploy an ASP.NET application

Hi Peter,

> I started a standalone xsp as you suggest - typing everything just as
> you give it, as root.  XSP seemed to start OK, from the messages.
> 
> I then entered http://linmono.uwic.ac.uk:8888/MSc/test.aspx in Konq
and
> got an Object Not Found error back.  I also tried localhost:8888, with
> the same result.

"Object Not Found" is an Apache error message, so it seems that
your Apache is listening on 8888 as well.

Robert


> 
> Does this suggest anything:
> 
> Cheers
> 
> 
> Peter
> 
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan
> Sent: 23 February 2006 12:24
> To: Mono-list at lists.ximian.com
> Subject: [Mono-list] Re: Unable to deploy an ASP.NET application
> 
> Hi Peter,
> 
>> Yes, I use Apache + mod_mono.
> 
> Did you already try whether a standalone XSP (w/out Apache+mod_mono)
> is working?
> 
> cd /usr/lib/xsp/test
> xsp --port 8888 --applications /MSc:./MSc
> 
> http://linmono.uwic.ac.uk/MSc/test.aspx
> 
> Robert
> 
>> My Apache2 configuration is the default except for the following
added
>> to the end of the file:
>>
>> ########################################################
>>
>> LoadModule mono_module /usr/lib/apache2/mod_mono.so
>> Alias /AspNetOnApache "/usr/lib/xsp/test"
>>
>> <Directory /usr/lib/xsp/test>
>> 	SetHandler mono
>> 	<IfModule mod_dir.c>
>> 		DirectoryIndex index.aspx
>> 	</IfModule>
>> 	Allow from all
>> </Directory>
>>
>> <Directory /usr/lib/xsp/test/MSc>
>> 	SetHandler mono
>> 	<IfModule mod_dir.c>
>> 		DirectoryIndex index.aspx
>> 	</IfModule>
>> 	Allow from all
>> </Directory>
>>
>> #############################################################
>>
>> This was copied (pretty much) from a CodeProject article.  I tried to
>> alter the alias to something more sensible, but without success so I
>> decided to stick with what I had.  This means that the url for my
>> project is:
>>
>> http://linmono.uwic.ac.uk/AspNetOnApache/MSc/Initial.aspx
>>
>> (
>> or as it stands at present because your test project is in there:
>>
>> http://linmono.uwic.ac.uk/AspNetOnApache/MSc/test.aspx
>> )
>>
>> I think the only thing I changed from the CodeProject article was to
> add
>> the <Directory> element for the sub-directory and add the "Allow from
>> all" line in both <Directory> elements on advice from the list in
> order
>> to overcome "Access Denied" errors from Apache.
>>
>> Cheers
>>
>>
>> Peter
>>
>>
>> -----Original Message-----
>> From: winzen at online.de [mailto:winzen at online.de] 
>> Sent: 23 February 2006 10:15
>> To: Bradley, Peter
>> Subject: AW: RE: Unable to deploy an ASP.NET application
>>
>> Hi Peter,
>>
>> you can forward the mail to the mailing list.
>> I just have some more questions. How do you run your webapp on Linux,
>> with xsp or Apache+mod_mono? If you use Apache i could mail you my
>> config settings because on my system the described pattern (just
> copying
>> the aspx+bin) works fine. So i have no idea why your Linux box does
> not
>> find/use the dll in the bin dir...
>>
>> Greetings
>>
>> Jochen Winzen
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list




More information about the Mono-list mailing list