This is a migrated thread and some comments may be shown as answers.
crash
3 Answers 48 Views
This is a migrated thread and some comments may be shown as answers.
Dan Andrews
Top achievements
Rank 2
Dan Andrews asked on 28 Apr 2011, 01:26 PM

---------------------------
Error
---------------------------
An error has occurred. Please, report this exception to the Telerik team (Use CTRL + C to copy the text). Thanks in advance!

 

System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.AggregateException: One or more errors occurred. ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.

   at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 211

   at Mono.Cecil.PE.ImageReader.ReadImage() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 104

   at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 672

   at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 876

   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 859

   at JustDecompile.Navigation.Views.CodeTreeView.(AssemblyNode assemblyNode) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 215

   at JustDecompile.Navigation.Views.CodeTreeView.„„(„ nodeType, AssemblyNode assemblyNode, AssemblyNamespace assemblyNamespace, AssemblyMemberDefinition assemblyMemberDefinition) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 174

   at JustDecompile.Navigation.Views.CodeTreeView..•.‡() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 162

   at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)

   at System.Threading.Tasks.Task.Execute()

   --- End of inner exception stack trace ---

   at System.Threading.Tasks.Task`1.get_Result()

   at JustDecompile.Navigation.Views.CodeTreeView.†„(Task`1 task, RadTreeViewItem treeViewItem) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 187

   at System.Threading.Tasks.Task.Execute()

   --- End of inner exception stack trace ---

   at System.Threading.Tasks.TaskExceptionHolder.Finalize()

---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.

   at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 211

   at Mono.Cecil.PE.ImageReader.ReadImage() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 104

   at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 672

   at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 876

   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 859

   at JustDecompile.Navigation.Views.CodeTreeView.(AssemblyNode assemblyNode) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 215

   at JustDecompile.Navigation.Views.CodeTreeView.„„(„ nodeType, AssemblyNode assemblyNode, AssemblyNamespace assemblyNamespace, AssemblyMemberDefinition assemblyMemberDefinition) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 174

   at JustDecompile.Navigation.Views.CodeTreeView..•.‡() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 162

   at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)

   at System.Threading.Tasks.Task.Execute()

   --- End of inner exception stack trace ---

   at System.Threading.Tasks.Task`1.get_Result()

   at JustDecompile.Navigation.Views.CodeTreeView.†„(Task`1 task, RadTreeViewItem treeViewItem) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 187

   at System.Threading.Tasks.Task.Execute()

---> (Inner Exception #0) System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.

   at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 211

   at Mono.Cecil.PE.ImageReader.ReadImage() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 104

   at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ImageReader.cs:line 672

   at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 876

   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 859

   at JustDecompile.Navigation.Views.CodeTreeView.(AssemblyNode assemblyNode) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 215

   at JustDecompile.Navigation.Views.CodeTreeView.„„(„ nodeType, AssemblyNode assemblyNode, AssemblyNamespace assemblyNamespace, AssemblyMemberDefinition assemblyMemberDefinition) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 174

   at JustDecompile.Navigation.Views.CodeTreeView..•.‡() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 162

   at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)

   at System.Threading.Tasks.Task.Execute()<---

<---

---------------------------
OK  
---------------------------

3 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 28 Apr 2011, 05:22 PM
Hello Dan-

What were you trying to decompile in this case? Currently, the beta only accepts EXEs and DLLs. Other formats, such as XAPs, can throw an error like this. Can you share a few more details so we can try to repo and fix any outstanding issues for the upcoming post-Beta builds?

-Todd
0
Dan Andrews
Top achievements
Rank 2
answered on 28 Apr 2011, 07:53 PM
PowerBuilder EXE.

I believe it's .NET 1.0.  My system is a Win 7, .NET 4.0 etc.
0
Kaloyan
Telerik team
answered on 29 Apr 2011, 10:28 AM
Hi Dan Andrews,

We are aware of the issue. Fix will be provided in the next release.

Kind regards,
Kaloyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Asked by
Dan Andrews
Top achievements
Rank 2
Answers by
Todd Anglin
Top achievements
Rank 2
Dan Andrews
Top achievements
Rank 2
Kaloyan
Telerik team
Share this question
or