Bug 36230 - [System.Diagnostics] System.InvalidCastException: Specified cast is not valid.
Summary: [System.Diagnostics] System.InvalidCastException: Specified cast is not valid.
Status: NEEDINFO
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 4.2.0 (C6)
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-24 20:05 UTC by André
Modified: 2015-12-22 16:35 UTC (History)
3 users (show)

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


Attachments
Stack trace (3.69 KB, text/plain)
2015-11-24 20:05 UTC, André
Details

Description André 2015-11-24 20:05:02 UTC
Created attachment 13984 [details]
Stack trace

Mono 4.2.X throws an exception during Monodevelop startup.
This exception is not thrown with Mono 4.0.4.1.
See also: https://bbs.archlinux.org/viewtopic.php?id=196097
Comment 1 Marek Safar 2015-11-26 11:06:44 UTC
I cannot reproduce the issue. Do you have customized Monodevelop.exe.config file? If so please attach it.
Comment 2 Su Liu 2015-12-22 16:35:05 UTC
I am able to repro:

System.InvalidCastException: Specified cast is not valid.
  at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection () <0x21e9440 + 0x00029> in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.Initialize () <0x21e9380 + 0x0005f> in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize () <0x21e9310 + 0x0000b> in <filename unknown>:0 
  at System.Diagnostics.TraceInternal.InitializeSettings () <0x21e91b0 + 0x00093> in <filename unknown>:0 
  at System.Diagnostics.TraceInternal.get_Listeners () <0x21e9000 + 0x00017> in <filename unknown>:0 
  at System.Diagnostics.Trace.get_Listeners () <0x21d8fa8 + 0x0003b> in <filename unknown>:0 
...

[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Specified cast is not valid.
  at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection () <0x21e9440 + 0x00029> in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.Initialize () <0x21e9380 + 0x0005f> in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize () <0x21e9310 + 0x0000b> in <filename unknown>:0 
  at System.Diagnostics.TraceInternal.InitializeSettings () <0x21e91b0 + 0x00093> in <filename unknown>:0 
  at System.Diagnostics.TraceInternal.get_Listeners () <0x21e9000 + 0x00017> in <filename unknown>:0 
  at System.Diagnostics.Trace.get_Listeners () <0x21d8fa8 + 0x0003b> in <filename unknown>:0 
...

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