[Mono-list] ASP.NET 2 Compilation Problems

Patrick Earl pat at dril.com
Thu Apr 20 14:23:38 EDT 2006


I solved my own problems.  Turns out I was using the wrong port (and
hence xsp and not xsp2).  However, I still have one issue.

It seems that the following config section causes a duplicate element
error.  It's in the system.web portion of the config file.

...
     <authorization>
       <deny users="?" />
     </authorization>
...

I've included the stack trace below.  Any suggestions on dealing with that?

         Patrick


System.Configuration.ConfigurationException: Duplicate element in
collection ()
in [0x000a5] System.Configuration.ConfigurationElementCollection:BaseAdd
(System.Configuration.ConfigurationElement element, Boolean throwIfExists)
in [0x00008] (at
mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs:148) 

System.Configuration.ConfigurationElementCollection:BaseAdd
(System.Configuration.ConfigurationElement element)
in [0x0004b] (at
mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs:461) 

System.Configuration.ConfigurationElementCollection:OnDeserializeUnrecognizedElement 

(System.String elementName, System.Xml.XmlReader reader)
in [0x00255] (at
mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:335) 

System.Configuration.ConfigurationElement:DeserializeElement
(System.Xml.XmlReader reader, Boolean serializeCollectionKey)
in [0x00098] (at
mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:115) 

System.Configuration.ConfigurationSection:DeserializeSection
(System.Xml.XmlReader reader)
in [0x00095] (at
mono-1.1.15/mcs/class/System.Configuration/System.Configuration/Configuration.cs:247) 

System.Configuration.Configuration:GetSectionInstance
(System.Configuration.SectionInfo config, Boolean createDefaultInstance)
in [0x0003c] (at
mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionCollection.cs:68) 

System.Configuration.ConfigurationSectionCollection:get_Item
(System.String name)
in [0x00079] (at
mono-1.1.15/mcs/class/System.Configuration/System.Configuration/Configuration.cs:216) 

System.Configuration.Configuration:GetSection (System.String path)
in [0x00008] (at
mono-1.1.15/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:240) 

System.Web.Configuration.WebConfigurationManager:GetWebApplicationSection
(System.String sectionName)
in [0x00029] (at
mono-1.1.15/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:201) 

System.Web.Configuration.WebConfigurationManager:GetSection
(System.String sectionName)
in [0x0001f] (at
mono-1.1.15/mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs:68) 

System.Web.Security.UrlAuthorizationModule:OnAuthorizeRequest
(System.Object sender, System.EventArgs args)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x0046d> System.Web.HttpApplication+<RunHooks>__1:MoveNext ()





More information about the Mono-list mailing list