Bug 35393 - NUnit System.MissingMethodException : Method 'IConfigurationSectionHandler.Create'
Summary: NUnit System.MissingMethodException : Method 'IConfigurationSectionHandler.Cr...
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Tools (show other bugs)
Version: 4.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-10-30 07:32 UTC by Alex Ellis
Modified: 2015-10-30 07:32 UTC (History)
2 users (show)

Tags:
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 35393 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:
Status:
NEW

Description Alex Ellis 2015-10-30 07:32:20 UTC
Issue: When running unit tests through nunit-console in a project making use of the Enterprise library logging stack I am getting the following error:

ReminderTest : System.TypeInitializationException : An exception was thrown by the type initializer for Microsoft.Practices.EnterpriseLibrary.Logging.LogX  ----> System.MissingMethodException : Method 'IConfigurationSectionHandler.Create' not found.

I have changed the project's names etc in the output below for posting online. Mono version also included in the details.

Base PC: Windows 7 64-bit.

I do not get this error when running through the standard Microsoft .NET framework and latest NUnit tool.


C:\Builds\SeleniumTests\bin\Debug>set MONO_PATH="C:\Program Files (x86)\Mono\lib\mono\4.5\"

C:\Builds\SeleniumTests\bin\Debug>"C:\Program Files (x86)\Mono\bin\mono.exe" --debug "C:\Program Files (x86)\Mono\lib\mono\4.5\nunit-console.exe" /fixture:ReminderTest .\SeleniumTests.dll

NUnit version 2.4.8
Copyright (C) 2002-2007 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: Microsoft Windows NT 6.1.7601.65536 Service Pack 1
  CLR Version: 4.0.30319.17020 ( 4.0.3 (Visual Studio built mono) )

.F.F.F.F.F
Tests run: 5, Failures: 5, Not run: 0, Time: 0.127 seconds

Test Fixture SetUp Failures:
1) ReminderTest : System.TypeInitializationException : An exception was thrown by the type initializer for Microsoft.Practices.EnterpriseLibrary.Logging.LogX  ----> System.MissingMethodException : Method 'IConfigurationSectionHandler.Create' not found.

at Selenium.Common.Utility.Helpers.Logging.WriteInfoLogEntry (System.String category, System.String message, System.Object[] args) [0x00000] in <filenameunknown>:0at Selenium.Common.Tests.TestBase`1SeleniumTests.Settings.RunSuiteSettings].WriteInfoLogEntry (System.String message, System.Object[] args)
 [0x00000] in <filename unknown>:0
at SeleniumTests.ReminderTest.TestFixtureSetUp () [0x00000]
 in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in C:\buildroot\release\repos\mono\mcs\class\corlib\System.Reflection\MonoMethod.cs:230
--MissingMethodException at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x0000d] in C:\buildroot\release\repos\mono\mcs\class\System.Configuration\System.Configuration\ClientConfigurationSystem.cs:62 at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in C:\buildroot\release\repos\mono\mcs\class\System.Configuration\
System.Configuration\ConfigurationManager.cs:159 at Microsoft.Practices.EnterpriseLibrary.Logging.LogWriterFactory.<.ctor>b__0 (System.String s) [0x00000] in <filename unknown>:0
at Microsoft.Practices.EnterpriseLibrary.Logging.LogWriterFactory+LogWriterConfigurationBuilder..ctor (System.Func`2 configurationAccessor) [0x00000] in <filena
me unknown>:0 
at Microsoft.Practices.EnterpriseLibrary.Logging.LogWriterFactory..ctor (System.Func`2 configurationAccessor) [0x00000] in <filename unknown>:0
at Microsoft.Practices.EnterpriseLibrary.Logging.LogWriterFactory..ctor () [0x00000] in <filename unknown>:0
at Microsoft.Practices.EnterpriseLibrary.Logging.LogX.InitializeWriter () [0x00000] in <filename unknown>:0
at Microsoft.Practices.EnterpriseLibrary.Logging.LogX..cctor () [0x00000] in <filename unknown>:0






\> mono -version

Mono JIT compiler version 4.0.3 (Visual Studio built mono)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-proj
ect.com
        TLS:           normal
        SIGSEGV:       normal
        Notification:  Thread + polling
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen