[Mono-list] ASP.NET 2 Compilation Problems

Chris Toshok toshok at novell.com
Thu Apr 20 14:49:54 EDT 2006


Hm.  Is this the only web.config file you have?  or are there any in
parent directories?  Also, are you sure it's that section?  I added it
to my test web.config here and see no errors.

Chris

On Thu, 2006-04-20 at 12:23 -0600, Patrick Earl wrote:
> 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 ()
> 
> 
> 
> _______________________________________________
> 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