[Mono-bugs] [Bug 667329] New: Key duplication when adding: sessionState

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 26 11:08:59 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=667329

https://bugzilla.novell.com/show_bug.cgi?id=667329#c0


           Summary: Key duplication when adding: sessionState
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86-64
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: rabram at customsinfo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13)
Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13

Using Apache 2.2.3 and mono 2.8.2 

Configured web site with MonoAutoRestartMode Requests.  After a couple of
restarts, browsing to the web site shows an exception error: Key duplication
when adding: sessionState.  

The number of restarts before the error appears is random and makes it hard to
track down the problem.  

In my web.config file, I do set the sessionState timeout value to 10 minutes.

This is new in the 2.8.x versions, I did not have this issue in the 2.6.x
versions.

It seems that something is not getting completely cleaned up when the auto
restart occurs.

Stack Trace: 

System.ArgumentException: Key duplication when adding: sessionState

  at System.Collections.Hashtable.PutImpl (System.Object key, System.Object
value, Boolean overwrite) [0x00137] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/corlib/System.Collections/Hashtable.cs:779 

  at System.Collections.Hashtable.Add (System.Object key, System.Object value)
[0x00000] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/corlib/System.Collections/Hashtable.cs:442 

  at System.Collections.Specialized.NameObjectCollectionBase.BaseAdd
(System.String name, System.Object value) [0x0004c] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs:457 

  at System.Collections.Specialized.NameObjectCollectionBase.BaseSet
(System.String name, System.Object value) [0x00030] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs:633 

  at System.Configuration.ConfigurationSectionCollection.get_Item
(System.String name) [0x00048] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionCollection.cs:70 

  at System.Configuration.Configuration.GetSection (System.String path)
[0x0006a] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System.Configuration/System.Configuration/Configuration.cs:249 

  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String
sectionName, System.String path, System.Web.HttpContext context) [0x001d4] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:503 

  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String
sectionName) [0x00006] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:413 

  at System.Web.SessionState.SessionStateModule.Init
(System.Web.HttpApplication app) [0x00000] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System.Web/System.Web.SessionState_2.0/SessionStateModule.cs:123 

  at System.Web.Configuration.HttpModulesSection.LoadModules
(System.Web.HttpApplication app) [0x0004c] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System.Web/System.Web.Configuration_2.0/HttpModulesSection.cs:83 

  at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x0007f] in
/root/mono/2.8.2/mono-2.8.2/mcs/class/System.Web/System.Web/HttpApplication.cs:219 


Reproducible: Sometimes

Steps to Reproduce:
1. Configure web site with a short mono auto restart
2. Add <sessionState timeout="10" /> to web.config
3. Browse to web page after restart
Actual Results:  
After a few auto restarts, the exception error appears.

Expected Results:  
Web site should come up normal

-- 
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