Bug Report T507545
Visible to All Users

Decompiler - An exception is thrown on an attempt to view resources

created 8 years ago (modified 8 years ago)

When trying to view resources embedded in a managed dll, the details pane shows the following error

No imaging component suitable to complete this operation was found.
   at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
   at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
   at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapImage.EndInit()
   at DevExpress.CodeRush.Wpf.ImageHelper.CreateImage(Stream stream)
   at DevExpress.CodeRush.Decompiler.Controls.ObjectToImageSourceConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   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.OnPropertyChanged(Object sender, PropertyChangedEventArgs e)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
   at DevExpress.Mvvm.BindableBase.<>c__DisplayClass1.<RaisePropertyChanged>b__0(PropertyChangedEventHandler x)
   at DevExpress.Mvvm.Native.MayBe.Do[TI](TI input, Action`1 action)
   at DevExpress.Mvvm.BindableBase.RaisePropertyChanged(String propertyName)
   at DevExpress.CodeRush.Decompiler.ViewModel.ResourceViewModel.set_Data(Object value)
   at DevExpress.CodeRush.Decompiler.ViewModel.DecompilerViewModel.ActivateResourceViewModel(IResourceItem item)
   at DevExpress.CodeRush.Decompiler.ViewModel.DecompilerViewModel.UpdateCodeView(ITreeListRow row, Boolean saveTohistory)

Comments (1)
DevExpress Support Team 8 years ago

    Hi Andre,

    Thank you for letting us know about this issue.
    I have reproduced this behavior on my machine. You will be notified when we prepare a fix.

    Answers approved by DevExpress Support

    created 8 years ago (modified 8 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.