[Mono-bugs] [Bug 413458] New: Referencing a master page from parent directory crashes reading web. config with babble about "MachineToApplication"
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jul 30 22:58:31 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=413458
Summary: Referencing a master page from parent directory crashes
reading web.config with babble about
"MachineToApplication"
Product: Mono: Class Libraries
Version: 1.9
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: alankila at bel.fi
QAContact: mono-bugs at lists.ximian.com
Found By: ---
I have an asp.net application that I am developing with approximately the
following structure:
root/admin/Default.aspx
root/admin/login.aspx
root/skin/foo.master
root/Default.aspx
root/web.config
The web.config declares that accesses to the admin subhierarchy require
authorization, and authorization is handled by admin/login.aspx. In web.config,
the <authentication mode="Forms"> begins on line 21.
Now admin/login.aspx declares MasterPageFile="../skin/foo.master", and every
attempt to load this page crashes with the following stack trace:
System.Configuration.ConfigurationErrorsException: The section <authentication>
can't be defined in this configuration file (the allowed definition context is
'MachineToApplication'). () ( line 21)
at System.Configuration.SectionInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlTextReader reader,
Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlTextReader reader, System.Configuration.Configuration config,
Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlTextReader reader,
Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlTextReader reader, System.Configuration.Configuration config,
Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadRootData
(System.Xml.XmlTextReader reader, System.Configuration.Configuration config,
Boolean overrideAllowed) [0x00000]
at System.Configuration.Configuration.ReadConfigFile
(System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
at System.Configuration.Configuration.Load () [0x00000]
at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent) [0x00000]
at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000]
at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000]
at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000]
at System.Configuration.InternalConfigurationFactory.Create (System.Type
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000]
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
(System.String path, System.String site, System.String locationSubPath,
System.String server, System.String userName, System.String password) [0x00000]
The application can be made to work by symlinking ../skin into the admin
directory and then using MasterPageFile="skin/foo.master", avoiding the parent
directory reference.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list