[Mono-list] Mapping across application not allowed?

Carl Olsen carl at carl-olsen.com
Sat Jul 23 17:50:27 EDT 2005


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.

Carl
http://www.carl-olsen.com/

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

Try

~/Controls/SiteFooter.ascx
instead of
/Controls/SiteFooter.ascx

hope it helps,

Joe





More information about the Mono-list mailing list