Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

NotSupportedException thrown in NR CecilLoader when using "Debug executable" #284

@siegfriedpammer

Description

@siegfriedpammer

Steps to reproduce:

  1. download and install RSSBandit http://rssbandit.org/download/rss-bandit-download/
  2. launch SD and select "Debug > Debug executable" from the main menu
  3. Select RSSBandit.exe and run it
    4.SD will automatically stop at the first instruction in Program.Main, so just click continue

expected result: RSSBandit.exe is launched completely and can be debugged

actual result: right after continuing execution, SharpDevelop fails with the following exception. The only solution is to terminate SD.

SharpDevelop Version : 5.0.0.3602-alpha-840f3f5e
.NET Version : 4.0.30319.18408
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : German (Austria) (de-AT)
Current UI language : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 263468kb
GC Heap Memory : 132321kb

Exception thrown:
System.NotSupportedException: Specified method is not supported.
at Mono.Cecil.SecurityDeclaration.GetBlob() in e:\Projects\SharpDevelop\SharpDevelop 5\src\Libraries\cecil\Mono.Cecil\SecurityDeclaration.cs:line 154
at ICSharpCode.NRefactory.TypeSystem.CecilLoader.AddSecurityAttributes(SecurityDeclaration secDecl, IList1 targetCollection) in e:\Projects\SharpDevelop\SharpDevelop 5\src\Libraries\NRefactory\ICSharpCode.NRefactory.Cecil\CecilLoader.cs:line 827 at ICSharpCode.NRefactory.TypeSystem.CecilLoader.AddSecurityAttributes(Collection1 securityDeclarations, IList1 targetCollection) in e:\Projects\SharpDevelop\SharpDevelop 5\src\Libraries\NRefactory\ICSharpCode.NRefactory.Cecil\CecilLoader.cs:line 821 at ICSharpCode.NRefactory.TypeSystem.CecilLoader.AddAttributes(AssemblyDefinition assembly, IList1 outputList) in e:\Projects\SharpDevelop\SharpDevelop 5\src\Libraries\NRefactory\ICSharpCode.NRefactory.Cecil\CecilLoader.cs:line 438
at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadModule(ModuleDefinition moduleDefinition) in e:\Projects\SharpDevelop\SharpDevelop 5\src\Libraries\NRefactory\ICSharpCode.NRefactory.Cecil\CecilLoader.cs:line 158
at Debugger.TypeSystemExtensions.LoadModule(Module module, String fileName) in e:\Projects\SharpDevelop\SharpDevelop 5\src\AddIns\Debugger\Debugger.Core\TypeSystemExtensions.cs:line 162
at Debugger.TypeSystemExtensions.<>c__DisplayClass1.b__0() in e:\Projects\SharpDevelop\SharpDevelop 5\src\AddIns\Debugger\Debugger.Core\TypeSystemExtensions.cs:line 148
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions