[Mono-list] Mapping across application not allowed?

Carl Olsen carl at carl-olsen.com
Fri Jul 22 16:01:48 EDT 2005


Well, I guess no one has an answer.

I have made two significant discoveries.  If I put the new user control in
the same directory as the page I'm calling it from, it works just fine.
Also, if I put the user control in any directory below the root directory
and call it from a page in the root directory, it works just fine.  My
existing user controls are called from pages in the root directory, as well
as all of the other pages in all of my subdirectories (headers, footers, and
menus for every page in the site).  It appears that the only time it doesn't
work is if the user control is not included on a page in the root directory
or it is not in the same directory as the page that is trying to include it.
I have no way of knowing if this is a fact, but it appears to be.  I don't
have this problem with IIS, so I assume it's a bug in Mono or something
about mod_mono and Apache.

Carl Olsen
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 Carl Olsen
Sent: Wednesday, July 20, 2005 9:50 PM
To: 'Mono List'
Subject: [Mono-list] Mapping across application not allowed?

<html>

I'm getting an unusual error trying to add a user control to a page.  I have
four others that work just fine, but this one seems to think it doesn't
belong in the family.  Does anyone know what could be causing this?

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


<title>Error 500</title><body bgcolor="white"><h1><font color="red">Server
error in '/' application</font></h1><hr>
<h2><font color="maroon"><i>Mapping across applications not
allowed.</i></font></h2>
<b>Description: </b>Error processing request.
<p>
<b>Error Message: </b>HTTP 500. Mapping across applications not allowed.
<p>
<hr>
</body>
</html>
<!--
System.Web.HttpException: Mapping across applications not allowed.
in &lt;0x001b4&gt; System.Web.HttpRequest:MapPath (System.String
virtualPath, System.String baseVirtualDir, Boolean allowCrossAppMapping)
in &lt;0x0004a&gt; System.Web.UI.BaseParser:MapPath (System.String path,
Boolean allowCrossAppMapping)
in &lt;0x00048&gt; System.Web.UI.TemplateParser:GetAssemblyFromSource
(System.String vpath)
in &lt;0x0017d&gt; System.Web.UI.TemplateParser:ProcessMainAttributes
(System.Collections.Hashtable atts)
in &lt;0x00099&gt; System.Web.UI.TemplateControlParser:ProcessMainAttributes
(System.Collections.Hashtable atts)
in &lt;0x0000d&gt; System.Web.UI.UserControlParser:ProcessMainAttributes
(System.Collections.Hashtable atts)
in &lt;0x000bb&gt; System.Web.UI.TemplateParser:AddDirective (System.String
directive, System.Collections.Hashtable atts)
in &lt;0x005dc&gt; System.Web.UI.TemplateControlParser:AddDirective
(System.String directive, System.Collections.Hashtable atts)
in &lt;0x0011f&gt; System.Web.Compilation.AspGenerator:TagParsed (ILocation
location, TagType tagtype, System.String tagid,
System.Web.Compilation.TagAttributes attributes)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_ILocation_TagType_string_TagAttributes
(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,Syst
em.Web.Compilation.TagAttributes)
in &lt;0x00023&gt; System.Web.Compilation.AspParser:OnTagParsed (TagType
tagtype, System.String id, System.Web.Compilation.TagAttributes attributes)
in &lt;0x001a2&gt; System.Web.Compilation.AspParser:Parse ()
in &lt;0x0001f&gt; System.Web.Compilation.AspGenerator:DoParse ()
in &lt;0x000d9&gt; System.Web.Compilation.AspGenerator:GetCompiledType ()
in &lt;0x0002b&gt; System.Web.UI.UserControlParser:CompileIntoType ()
in &lt;0x00032&gt; System.Web.UI.UserControlParser:GetCompiledType
(System.String virtualPath, System.String inputFile,
System.Collections.ArrayList deps, System.Web.HttpContext context)
in &lt;0x002ff&gt; System.Web.UI.TemplateControlParser:AddDirective
(System.String directive, System.Collections.Hashtable atts)
in &lt;0x0011f&gt; System.Web.Compilation.AspGenerator:TagParsed (ILocation
location, TagType tagtype, System.String tagid,
System.Web.Compilation.TagAttributes attributes)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_ILocation_TagType_string_TagAttributes
(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,Syst
em.Web.Compilation.TagAttributes)
in &lt;0x00023&gt; System.Web.Compilation.AspParser:OnTagParsed (TagType
tagtype, System.String id, System.Web.Compilation.TagAttributes attributes)
in &lt;0x001a2&gt; System.Web.Compilation.AspParser:Parse ()
in &lt;0x0001f&gt; System.Web.Compilation.AspGenerator:DoParse ()
in &lt;0x000d9&gt; System.Web.Compilation.AspGenerator:GetCompiledType ()
in &lt;0x0002b&gt; System.Web.UI.PageParser:CompileIntoType ()
in &lt;0x00011&gt; System.Web.UI.TemplateControlParser:GetCompiledInstance
()
in &lt;0x00037&gt; System.Web.UI.PageParser:GetCompiledPageInstance
(System.String virtualPath, System.String inputFile, System.Web.HttpContext
context)
in &lt;0x00010&gt; System.Web.UI.PageHandlerFactory:GetHandler
(System.Web.HttpContext context, System.String requestType, System.String
url, System.String path)
in &lt;0x00294&gt; System.Web.HttpApplication:CreateHttpHandler
(System.Web.HttpContext context, System.String type, System.String file,
System.String path)
in &lt;0x0008f&gt; System.Web.HttpApplication+CreateHandlerState:Execute ()
in &lt;0x0007c&gt; System.Web.HttpApplication+StateMachine:ExecuteState
(IStateHandler state, System.Boolean readysync)
-->


_______________________________________________
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