[Mono-list] web.config location on Linux???

Abe Gillespie abe.gillespie at gmail.com
Thu Jun 16 14:08:38 EDT 2011


If you're allowing Mono / XSP to autoconfig your ASP.Net settings then I
*believe* the root of the web app is in the location that an .aspx page is
first encountered.  It's very possible I'm wrong.  I pretty much strictly
run MVC sites which requires manual site configuration.  For more info
please thoroughly digest both:

http://www.mono-project.com/ASP.NET
http://www.mono-project.com/Mod_mono

They're both relevant since mod_mono is simply a wrapper around XSP and
exposes its services to Apache.  E.g. most of the configuration options that
are available to mod_mono are available to XSP.  There's also plenty of help
baked directly into XSP if you run it with "--help" from the command line.

-Abe

On Thu, Jun 16, 2011 at 1:39 PM, Tim O'Neal <toneal at suffolk.edu> wrote:

>  Abe,****
>
> Thanks, but is Apache’s DocumentRoot the same thing as the “root of the web
> app”??****
>
> ** **
>
> My DocumentRoot = /web/www.suffolk.edu/docs , and my .aspx files are in:**
> **
>
> /web/www.suffolk.edu/docs/prospect_forms , i.e. /web/
> www.suffolk.edu/docs/prospect_forms/infoactiong.aspx****
>
> ** **
>
> BTW, I did obviate the immediate need for the web.config file (below) by
> using X11 DISPLAY and firefox back to my PC.  However, now I see that my
> problems are in the infoactiong.aspx source code (as per the attached web
> page).  ****
>
> I’m wondering if these problems are relatively easily fixable, or whether I
> can get Chilisoft to work on Linux …. Somehow (since all I have are the old
> Sparc Solaris executables that I’ve been using with Apache).****
>
> ** **
>
> TIA,****
>
> Tim****
>
> *From:* Abe Gillespie [mailto:abe.gillespie at gmail.com]
> *Sent:* Thursday, June 16, 2011 12:47 PM
> *To:* Tim O'Neal
> *Cc:* mono-list at lists.ximian.com
> *Subject:* Re: [Mono-list] web.config location on Linux???****
>
> ** **
>
> Putting the Web.config file in the root of the web app should work.  Ensure
> this isn't a casing issue - be absolutely certain that the characters
> exactly match "Web.config".****
>
> ** **
>
> -Abe****
>
> On Thu, Jun 16, 2011 at 12:34 PM, Tim O'Neal <toneal at suffolk.edu> wrote:**
> **
>
> Colleagues,****
>
>  ****
>
> I’m a newbie to asp.net and to mono, so my apologies if I’m asking
> something stupid. I’ve also tried to read the docs and search the Internet.
> ****
>
>  ****
>
> I’m trying to configure mod_mono for Apache httpd server on RHEL Linux.  I
> use the standard RHEL linux file layout/locations for config files, where
> /etc/httpd/conf.d/mod_mono.conf and /etc/httpd/conf.d/httpd-vhosts.conf
> reside.  Mod_mono module gets loaded and “seems” to work.  That is, I can
> run the mono demo/test application, and I can run successfully one of my
> legacy .ASP files “if I change the file-type from .ASP to .ASPX”.****
>
>  ****
>
> However, that successfully run .asp file ( prospect_forms/infoform_g.aspx )
> has an “action” .asp file that it calls (prospect_forms/infoactiong.aspx ).
> This latter  .asp file ( infoactiong.aspx ) generates an error as follows:
> ****
>
>  ****
>
> *Server Error in '/prospect_forms' Application*****
>
> *Error! Filename not specified.*****
>
> *Description:* An application error occurred on the server. The current
> custom error settings for this application prevent the details of the
> application error from being viewed remotely (for security reasons). It
> could, however, be viewed by browsers running on the local server machine.
> ****
>
> *Details:* To enable the details of this specific error message to be
> viewable on remote machines, please create a <customErrors> tag within a
> "web.config" configuration file located in the root directory of the current
> web application. This <customErrors> tag should then have its "mode"
> attribute set to "Off".****
>
>   ****
>
> <!-- Web.Config Configuration File -->****
>
>  ****
>
> <configuration>****
>
>     <system.web>****
>
>  ****
>
>         <customErrors mode="Off"/>****
>
>     </system.web>****
>
> </configuration>****
>
>  ****
>
> QUESTION:  Where in my web site configuration should this “web.config” file
> be located so that I can see the errors generated --- per above message?
> Also, I know that mono does not provide .asp support, but it does seem to
> work if I change the file types to .aspx.  Can I add the file type .asp to
> be handled by mod_mono?  BTW, I’m using the default xsp server.****
>
>  ****
>
> BTW, previously I used ChiliSoft ASP with Apache on Sparc Solaris, but am
> trying to move to Intel Linux while not substantially changing the web site
> web pages (some of which contain some .asp files).  I’d use ChiliSoft if I
> could successfully get it to work on Intel Linux (There used to be a Linux
> version of ChiliSoft out there, but I can’t locate it).****
>
>  ****
>
> Thanks,****
>
>  ****
>
> Tim****
>
>  ****
>
>  ****
>
>  ****
>
>
> _______________________________________________
> 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/20110616/c7fdc6b3/attachment-0001.html 


More information about the Mono-list mailing list