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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <0x001b4> System.Web.HttpRequest:MapPath (System.String virtualPath, System.String baseVirtualDir, Boolean allowCrossAppMapping) in <0x0004a> System.Web.UI.BaseParser:MapPath (System.String path, Boolean allowCrossAppMapping) in <0x00048> System.Web.UI.TemplateParser:GetAssemblyFromSource (System.String vpath) in <0x0017d> System.Web.UI.TemplateParser:ProcessMainAttributes (System.Collections.Hashtable atts) in <0x00099> System.Web.UI.TemplateControlParser:ProcessMainAttributes (System.Collections.Hashtable atts) in <0x0000d> System.Web.UI.UserControlParser:ProcessMainAttributes (System.Collections.Hashtable atts) in <0x000bb> System.Web.UI.TemplateParser:AddDirective (System.String directive, System.Collections.Hashtable atts) in <0x005dc> System.Web.UI.TemplateControlParser:AddDirective (System.String directive, System.Collections.Hashtable atts) in <0x0011f> 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 <0x00023> System.Web.Compilation.AspParser:OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) in <0x001a2> System.Web.Compilation.AspParser:Parse () in <0x0001f> System.Web.Compilation.AspGenerator:DoParse () in <0x000d9> System.Web.Compilation.AspGenerator:GetCompiledType () in <0x0002b> System.Web.UI.UserControlParser:CompileIntoType () in <0x00032> System.Web.UI.UserControlParser:GetCompiledType (System.String virtualPath, System.String inputFile, System.Collections.ArrayList deps, System.Web.HttpContext context) in <0x002ff> System.Web.UI.TemplateControlParser:AddDirective (System.String directive, System.Collections.Hashtable atts) in <0x0011f> 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 <0x00023> System.Web.Compilation.AspParser:OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) in <0x001a2> System.Web.Compilation.AspParser:Parse () in <0x0001f> System.Web.Compilation.AspGenerator:DoParse () in <0x000d9> System.Web.Compilation.AspGenerator:GetCompiledType () in <0x0002b> System.Web.UI.PageParser:CompileIntoType () in <0x00011> System.Web.UI.TemplateControlParser:GetCompiledInstance () in <0x00037> System.Web.UI.PageParser:GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) in <0x00010> System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) in <0x00294> System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext context, System.String type, System.String file, System.String path) in <0x0008f> System.Web.HttpApplication+CreateHandlerState:Execute () in <0x0007c> System.Web.HttpApplication+StateMachine:ExecuteState (IStateHandler state, System.Boolean readysync) --> _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
