[Mono-list] Mapping across application not allowed?

Carl Olsen carl at carl-olsen.com
Sat Jul 23 21:11:51 EDT 2005

What versions of Apache and Mono?

I've about exhausted my research into this.  I know how to make it work by
putting my user controls into the same directory or a subdirectory of the
page I'm calling it from.  That works well enough for me.  I may be doing
something wrong, but it's not important enough to figure it out.


-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Chris Aitken
Sent: Saturday, July 23, 2005 5:58 PM
To: carl at carl-olsen.com; 'Joe Audette'; 'Mono List'
Subject: RE: [Mono-list] Mapping across application not allowed?

> I just tested it thoroughly and there's no doubt about it.  I 
> create a user control in the "/Controls/" subdirectory.  I 
> create a page in the "/Modules/Legislators" subdirectory and 
> include the control.  I get an error saying "Mapping across 
> application not allowed."
> I then create a page in the root directory and include the 
> control. Everything works perfectly after that - both pages 
> display the user control without any errors.
> The book I'm using for my web site, "ASP.NET Website 
> Programming" by Wrox (ISBN 1-86100693-4) puts the user 
> controls for the subdirectories into the subdirectories and I 
> was wondering why they put them there.  It's all starting to 
> make sense now.
> Windows .NET doesn't care where you put them, but Mono is 
> probably following a stricter set of rules.


I'm unsure about this.

I have created /workng/subdir/page.aspx (/ = webroot) [1], which calls the
same ascx as before (from /a/ssi/footer.ascx).

No problems. See http://www.hostmono.net/working/subdir/server.aspx for


<%@ Page Language="C#" trace="true" debug="true" %>
<%@ Register TagPrefix="UserControl" TagName="Footer"
Src="/a/ssi/footer.ascx" %>
<title>HostMono Blah</title>
<style type="text/css" media="all">
        @import url(a/c/hostmono.css);
        <div id="assy">
        <UserControl:Footer id="myFooter" runat="Server" />

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

Mono-list maillist  -  Mono-list at lists.ximian.com

More information about the Mono-list mailing list