Bug 35575 - System.MissingMethodException : Method 'HttpCookie.get_Shareable' not found
Summary: System.MissingMethodException : Method 'HttpCookie.get_Shareable' not found
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web ()
Version: 3.12.0
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-11-05 09:10 UTC by Alex Ellis
Modified: 2015-11-19 09:48 UTC (History)
3 users (show)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 35575 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Alex Ellis 2015-11-05 09:10:25 UTC
While using Selenium an exception is thrown, this is handled by an EnterpriseLibrary extension called LogX (by Hashtag)

Source file:

This accesses HttpContext and then the various cookies.. but we get a Missing Method Exception.

Please could this be looked into - is this code just not implemented at all in Mono - or could it be something else?

Further details below.

 System.MissingMethodException : Method 'HttpCookie.get_Shareable' not found.
  at Microsoft.Practices.EnterpriseLibrary.Logging.EntLibExtensions.Warning (Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter writer, System.Exception ex) [0x00000] in <filename unknown>:0
  at Microsoft.Practices.EnterpriseLibrary.Logging.LogX.get_Warning () [0x00000] in <filename unknown>:0
  at Adp.Automation.Selenium.Extensions.WebElementExtensions.FindElementOrThrow (ISearchContext oDriver, OpenQA.Selenium.By oBy, System.String sNotFoundExceptionText) [0x00000] in <filename unknown>:0

I am using mono 3.12.0 under the official docker image to build and then run these tests with nunit.

mono --version
Mono JIT compiler version 4.0.4 (Stable Tue Aug 25 23:11:51 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen

Output from NUnit

mono packages/NUnit.Runners.2.6.4/tools/nunit-console-x86.exe ../build/Adp.SeleniumTests.FixtureNameHere.dll -trace=Verbose -run=Adp.SeleniumTests.FixtureNameHere
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
NUnit-Console version
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment -
   OS Version: Unix
  CLR Version: 4.0.30319.17020 ( Mono 4.0 ( 4.0.4 (Stable Tue Aug 25 23:11:51 UTC 2015) ) )

ProcessModel: Default    DomainUsage: Single
Execution Runtime: mono-4.0
Selected test(s): Adp.SeleniumTests.FixtureNameHere