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

Bradley, Peter PBradley at uwic.ac.uk
Fri Feb 24 14:38:31 EST 2006


My apologies Joe, but that went straight over my head.

However, I did Google for NameVirtualHost and found that it will not work with SSL.  Since I will need SSL at some point, this doesn't appear to be a solution.

Can you, or anyone else just explain to me what I have to do to get Apache to run pre-compiled code behind?  Ideally, I'd just like to be able to put my aspx pages and bin directory into a directory off of htdocs and have it run.

I'm a developer, you see, rather than a sysadmin: and a Windows developer at that :(  I can easily get this stuff going in IIS, but Apache just defeats me every time.  I'm sure it's my fault, but I'm really struggling with this.

But many thanks for trying to educate me.  I'm just sorry I'm so thick.

Regards


Peter


-----Original Message-----
From:	Joe Audette [mailto:joe_audette at yahoo.com]
Sent:	Fri 2/24/2006 3:11 PM
To:	Bradley, Peter
Cc:	
Subject:	Re: [Mono-list] Re: Unable to deploy an ASP.NET application

I have tutorial here that may be helpful
http://www.joeaudette.com/settingupapachevirtualhostswithmod_mono.aspx

Cheers,

Joe
 
 
joe_audette [at] yahoo dotcom 
http://www.joeaudette.com 
http://www.mojoportal.com

----- Original Message ----
From: "Bradley, Peter" <PBradley at uwic.ac.uk>
To: Mono-list at lists.ximian.com
Sent: Friday, February 24, 2006 9:05:54 AM
Subject: [Mono-list] Re: Unable to deploy an ASP.NET application

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


_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060224/b7b9955c/attachment-0001.html


More information about the Mono-list mailing list