This is a migrated thread and some comments may be shown as answers.

Just Decompile error report

6 Answers 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
vb2ae
Top achievements
Rank 1
vb2ae asked on 18 May 2011, 05:47 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.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Mono.Cecil.PE.ByteBuffer.ReadByte() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ByteBuffer.cs:line 68

   at Mono.Cecil.SignatureReader..ctor(UInt32 blob, MetadataReader reader) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 2532

   at Mono.Cecil.MetadataReader.ReadField(UInt32 field_rid) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1140

   at Mono.Cecil.MetadataReader.ReadFields(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1128

   at Mono.Cecil.TypeDefinition.get_Fields() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 211

   at Mono.Cecil.Extensions.TypeDefinitionExtensions..ž.MoveNext()

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)

   at Infrastructure.Structure.AssemblyMemberNode.GetChildNodes() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyMemberNode.cs:line 89

   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 137

   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.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Mono.Cecil.PE.ByteBuffer.ReadByte() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ByteBuffer.cs:line 68

   at Mono.Cecil.SignatureReader..ctor(UInt32 blob, MetadataReader reader) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 2532

   at Mono.Cecil.MetadataReader.ReadField(UInt32 field_rid) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1140

   at Mono.Cecil.MetadataReader.ReadFields(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1128

   at Mono.Cecil.TypeDefinition.get_Fields() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 211

   at Mono.Cecil.Extensions.TypeDefinitionExtensions..ž.MoveNext()

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)

   at Infrastructure.Structure.AssemblyMemberNode.GetChildNodes() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyMemberNode.cs:line 89

   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 137

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

---> (Inner Exception #0) System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Mono.Cecil.PE.ByteBuffer.ReadByte() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil.PE\ByteBuffer.cs:line 68

   at Mono.Cecil.SignatureReader..ctor(UInt32 blob, MetadataReader reader) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 2532

   at Mono.Cecil.MetadataReader.ReadField(UInt32 field_rid) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1140

   at Mono.Cecil.MetadataReader.ReadFields(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1128

   at Mono.Cecil.TypeDefinition.get_Fields() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 211

   at Mono.Cecil.Extensions.TypeDefinitionExtensions..ž.MoveNext()

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)

   at Infrastructure.Structure.AssemblyMemberNode.GetChildNodes() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyMemberNode.cs:line 89

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

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

<---

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

6 Answers, 1 is accepted

Sort by
0
J
Top achievements
Rank 1
answered on 18 May 2011, 11:46 PM
Getting the same error:
---------------------------
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   
---------------------------

0
Tsviatko Yovtchev
Telerik team
answered on 24 May 2011, 03:23 PM
Hello Ken,

 What are you trying to decompile? Can we get a copy of the assemblies where you get these exceptions? You could post it here or send it over to tsviatko.yovtchev at telerik.com.

Best wishes,
Tsviatko Yovtchev
the Telerik team

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

0
Dandre
Top achievements
Rank 1
answered on 01 Jun 2011, 08:29 AM
I tried to open JustDecompile by right clicking on my .NET DLL and say "Open with". I selected JustDecompile and I was greeted with this error message:

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



Microsoft.Practices.Prism.Modularity.ModuleTypeLoadingException: Failed to load type for module HistoryModule.



If this error occurred when using MEF in a Silverlight application, please ensure that the CopyLocal property of the reference to the MefExtensions assembly is set to true in the main application/shell and false in all other assemblies.



Error was: Could not load file or assembly 'JustDecompile.History.dll' or one of its dependencies. The system cannot find the file specified.. ---> System.IO.FileNotFoundException: Could not load file or assembly 'JustDecompile.History.dll' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

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

   at System.Reflection.AssemblyName.nGetFileInformation(String s)

   at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)

   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)

   at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase, ICompositionElement definitionOrigin)

   at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo)

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

   at Microsoft.Practices.Prism.Modularity.ModuleManager.HandleModuleTypeLoadingError(ModuleInfo moduleInfo, Exception exception)

   at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo)

   at Microsoft.Practices.Prism.Modularity.ModuleManager.LoadModuleTypes(IEnumerable`1 moduleInfos)

   at Microsoft.Practices.Prism.MefExtensions.MefBootstrapper.Run(Boolean runWithDefaultConfiguration)

   at JustDecompile.App.OnStartup(StartupEventArgs e) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile\App.xaml.cs:line 16777215

   at System.Windows.Application.<.ctor>b__1(Object unused)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.DispatcherOperation.InvokeImpl()

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Threading.DispatcherOperation.Invoke()

   at System.Windows.Threading.Dispatcher.ProcessQueue()

   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   at System.Windows.Application.RunInternal(Window window)

   at System.Windows.Application.Run()

   at JustDecompile.App.() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile\obj\Release\App.g.cs:line 16777215
---------------------------
OK   
---------------------------
0
Kaloyan
Telerik team
answered on 02 Jun 2011, 02:12 PM
Hello Dandre,

 We will address the issue for the upcoming release. Thanks for reporting it.

Greetings,
Kaloyan
the Telerik team

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

0
les
Top achievements
Rank 1
answered on 20 Oct 2011, 06:20 AM
Tried latest version - Les.
---------------------------
Error
---------------------------
An error has occurred. Please, report this exception to the Telerik team (JustDecompilePublicFeedback@telerik.com) (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.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.



Server stack trace:

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

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

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

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

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

   at Telerik.JustDecompiler.AssemblyLoader.LoadAssembly(String fileName)

   at Infrastructure.AssemblyNode.„() in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyNode.cs:line 86

   at System.Lazy`1.CreateValue()



Exception rethrown at [0]:

   at System.Lazy`1.get_Value()

   at Infrastructure.AssemblyNode.get_ModuleDefinition() in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyNode.cs:line 73

   at Infrastructure.AssemblyNode.Equals(AssemblyNode other) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyNode.cs:line 100

   at System.Collections.Generic.GenericEqualityComparer`1.IndexOf(T[] array, T value, Int32 startIndex, Int32 count)

   at System.Array.IndexOf[T](T[] array, T value, Int32 startIndex, Int32 count)

   at System.Collections.Generic.List`1.IndexOf(T item)

   at System.Collections.ObjectModel.Collection`1.IndexOf(T item)

   at System.Collections.ObjectModel.Collection`1.System.Collections.IList.IndexOf(Object value)

   at System.Windows.Data.ListCollectionView.InternalIndexOf(Object item)

   at System.Windows.Data.ListCollectionView.RefreshOverride()

   at System.Windows.Data.CollectionView.Refresh()

   at System.Windows.Data.CollectionView.EndDefer()

   at System.Windows.Data.CollectionView.DeferHelper.Dispose()

   at System.Windows.Controls.ItemCollection.SetCollectionView(CollectionView view)

   at System.Windows.Controls.ItemCollection.SetItemsSource(IEnumerable value)

   at System.Windows.Controls.ItemsControl.OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)

   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)

   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)

   at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)

   at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)

   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)

   at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)

   at MS.Internal.Data.PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)

   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)

   at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)

   at Microsoft.Practices.Prism.ViewModel.NotificationObject.RaisePropertyChanged(String propertyName)

   at JustDecompile.Navigation.ViewModels.CodeTreeViewModel.(AssemblyTree assemblyTree) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\ViewModels\CodeTreeViewModel.cs:line 311

   at Infrastructure.Configuration..€.(Task`1 t) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Configuration.cs:line 592

   at System.Threading.Tasks.Task`1.<>c__DisplayClass17.<ContinueWith>b__16(Object obj)

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

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

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

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

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



Server stack trace:

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

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

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

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

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

   at Telerik.JustDecompiler.AssemblyLoader.LoadAssembly(String fileName)

   at Infrastructure.AssemblyNode.„() in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyNode.cs:line 86

   at System.Lazy`1.CreateValue()



Exception rethrown at [0]:

   at System.Lazy`1.get_Value()

   at Infrastructure.AssemblyNode.get_ModuleDefinition() in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyNode.cs:line 73

   at Infrastructure.AssemblyNode.Equals(AssemblyNode other) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyNode.cs:line 100

   at System.Collections.Generic.GenericEqualityComparer`1.IndexOf(T[] array, T value, Int32 startIndex, Int32 count)

   at System.Array.IndexOf[T](T[] array, T value, Int32 startIndex, Int32 count)

   at System.Collections.Generic.List`1.IndexOf(T item)

   at System.Collections.ObjectModel.Collection`1.IndexOf(T item)

   at System.Collections.ObjectModel.Collection`1.System.Collections.IList.IndexOf(Object value)

   at System.Windows.Data.ListCollectionView.InternalIndexOf(Object item)

   at System.Windows.Data.ListCollectionView.RefreshOverride()

   at System.Windows.Data.CollectionView.Refresh()

   at System.Windows.Data.CollectionView.EndDefer()

   at System.Windows.Data.CollectionView.DeferHelper.Dispose()

   at System.Windows.Controls.ItemCollection.SetCollectionView(CollectionView view)

   at System.Windows.Controls.ItemCollection.SetItemsSource(IEnumerable value)

   at System.Windows.Controls.ItemsControl.OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)

   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)

   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)

   at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)

   at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)

   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)

   at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)

   at MS.Internal.Data.PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)

   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)

   at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)

   at Microsoft.Practices.Prism.ViewModel.NotificationObject.RaisePropertyChanged(String propertyName)

   at JustDecompile.Navigation.ViewModels.CodeTreeViewModel.(AssemblyTree assemblyTree) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\ViewModels\CodeTreeViewModel.cs:line 311

   at Infrastructure.Configuration..€.(Task`1 t) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Configuration.cs:line 592

   at System.Threading.Tasks.Task`1.<>c__DisplayClass17.<ContinueWith>b__16(Object obj)

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

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



In version: 2011.2.1017.4
---------------------------
OK   
---------------------------
0
Kaloyan
Telerik team
answered on 20 Oct 2011, 09:53 AM
Hi Les,

 Can you share the assembly that you are trying to open?

Best wishes,
Kaloyan
the Telerik team

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

Tags
General Discussions
Asked by
vb2ae
Top achievements
Rank 1
Answers by
J
Top achievements
Rank 1
Tsviatko Yovtchev
Telerik team
Dandre
Top achievements
Rank 1
Kaloyan
Telerik team
les
Top achievements
Rank 1
Share this question
or