Bug 13014 - Non-web exception Exception origin System.Web.UI.Page.Get_PageAdapter
Summary: Non-web exception Exception origin System.Web.UI.Page.Get_PageAdapter
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: master
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-07-02 12:04 UTC by Fred
Modified: 2013-08-02 13:39 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
ASP.NET Browsers cap file (940 bytes, application/octet-stream)
2013-07-02 12:04 UTC, Fred
Details

Description Fred 2013-07-02 12:04:54 UTC
Created attachment 4256 [details]
ASP.NET Browsers cap file

Non-web exception. Exception origin HTTP 500 error with a ASP.NET 2.0 web application that uses the PageAdapter.

New with Mono 3.0.x (confirmed on 3.0.10 and 3.0.12)
Was working perfectly well with 2.10.x branch, so it seems to be a regression.

Now, any first page I hit, I stumble across an HTTP 500 error message with the following stack trace:

  at System.Collections.Hashtable.PutImpl (System.Object key, System.Object value, Boolean overwrite) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable.Add (System.Object key, System.Object value) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor (IDictionary d, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor (IDictionary d, Single loadFactor) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor (IDictionary d, Single loadFactor, IEqualityComparer equalityComparer) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor (IDictionary d, IEqualityComparer equalityComparer) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.HttpCapabilitiesBase.set_Capabilities (IDictionary value) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.CapabilitiesResult..ctor (IDictionary items) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.nBrowser.Result..ctor (IDictionary items) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.nBrowser.Build.Process (System.Collections.Specialized.NameValueCollection header, IDictionary initialCapabilities) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.CapabilitiesBuild.Process (System.Web.HttpRequest request, IDictionary initialCapabilities) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.HttpCapabilitiesBase.GetConfigCapabilities (System.String configKey, System.Web.HttpRequest request) [0x00000] in <filename unknown>:0 
  at System.Web.HttpRequest.get_Browser () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Control.ResolveAdapter () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Control.get_Adapter () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.get_PageAdapter () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 

Following is the content of my Browser file (in App_Browsers) - which is attached as well:

<browsers>
  <browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.WebControls.GridView"
               adapterType="IHM.GridViewAdapter" />
    </controlAdapters>
  </browser>

  <browser id="W3C_Validator" parentID="default">
    <identification>
      <userAgent match="^W3C_Validator" />
    </identification>
    <capabilities>
      <capability name="browser"              value="W3C Validator" />
      <capability name="ecmaScriptVersion"    value="1.2" />
      <capability name="javascript"           value="true" />
      <capability name="supportsCss"          value="true" />
      <capability name="supportsCallback"     value="true" />
      <capability name="tables"               value="true" />
      <capability name="tagWriter"            value="System.Web.UI.HtmlTextWriter" />
      <capability name="w3cdomversion"        value="1.0" />
    </capabilities>
  </browser>
</browsers>
Comment 1 Fred 2013-08-02 13:39:26 UTC
Just to confirm that the bug still exists in mono 3.2.0 on Mac at least.

Moreover with this new mono version, it takes 2 minutes and 15 seconds from an apache fresh start to get the exception with very high cpu usage.
It is way more than the double of time I had with 2.x Mono version.

Interestingly enough, I get the exception with Safari and Chrome browsers but it works flawlessly with Firefox.

On previous 2.x mono versions it was working as expected with all those three browsers.

Note You need to log in before you can comment on or make changes to this bug.