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 (show other bugs)
Version: 3.12.0
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-05 09:10 UTC by Alex Ellis
Modified: 2015-11-19 09:48 UTC (History)
3 users (show)

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


Attachments

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:
https://hashtagentlib.codeplex.com/SourceControl/latest#HashTag.EntLib/LogMessageBuilder.cs

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 4.0.4.1/5ab4c0d 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 2.6.4.14350
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 4.2.0.16
  CLR Version: 4.0.30319.17020 ( Mono 4.0 ( 4.0.4 (Stable 4.0.4.1/5ab4c0d Tue Aug 25 23:11:51 UTC 2015) ) )

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

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