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

Unhandled exception?

1 Answer 74 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Serrin
Top achievements
Rank 1
Serrin asked on 11 Nov 2008, 09:12 PM
Hey Telerik folks,

This is an odd one...  I started playing with RadMediaPlayer today and keep running into this error:

Error HRESULT E_FAIL has been returned from a call to a COM component.  
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)  
   at MS.Internal.XcpImports.RenderTargetBitmapRender(HostingRenderTargetBitmap bitmap, UIElement visual, Int32& dirtyX, Int32& dirtyY, Int32& dirtyWidth, Int32& dirtyHeight)  
   at System.Windows.Interop.HostingRenderTargetBitmap.Render(UIElement visual)  
   at MS.Internal.Silverlight.Host.RuntimeInterop.RenderElementToTargetBitmap(Int32 elementKey, Int32 targetBitmapIdentifier)  
   at MS.Internal.Silverlight.Host.Interop.RenderElementToTargetBitmap(Int32 element, Int32 targetBitmapIdentifier, ISilverlightContentDownloadCallback urlcallback)  
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateBitmap()  
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateTree()  
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.MeasureOverride(Size constraint)  
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)  
   at System.Windows.UIElement.Measure(Size availableSize)  
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.MeasureOverride(Size constraint)  
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)  
   at System.Windows.UIElement.Measure(Size availableSize)  
   at System.Windows.ContextLayoutManager.UpdateLayout()  
   at System.Windows.UIElement.UpdateLayout()  
   at System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)  
   at System.Windows.Interop.HwndSource.LayoutFilterMessage(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, Boolean isSingleParameter)  
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)  
 
 

This prompts me to reload the designer, but after doing that the designer is blank for a few seconds and I receive the same message.  Now, funny thing is that when I run the project it loads just fine...  Here is what I have for my Xaml:

<UserControl xmlns:telerikMedia="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer"  x:Class="SilverlightApplication17.Page" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    Width="400" Height="300">  
    <Grid x:Name="LayoutRoot" Background="White">  
        <Grid.ColumnDefinitions> 
            <ColumnDefinition /> 
        </Grid.ColumnDefinitions> 
        <Grid.RowDefinitions> 
            <RowDefinition /> 
        </Grid.RowDefinitions> 
          
        <telerikMedia:RadMediaPlayer AutoPlaylistAdvance="True" MinWidth="200" Grid.Column="0" 
                                     Grid.Row="0">  
            <telerikMedia:RadMediaItem  
   Source="http://mschnlnine.vo.llnwd.net/d1/ch9/7/1/5/1/2/4/DynamicsDuoCRMSilverlight_ch9.wmv" 
   ImageSource="http://neosmart.net/blog/wp-content/uploads/microsoft-silverlight.png" 
   Title="The Dynamics Duo talk about CRM and Silverlight" /> 
        </telerikMedia:RadMediaPlayer> 
          
    </Grid> 
</UserControl> 
 

Any ideas are welcome. :)

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 13 Nov 2008, 02:53 PM
Hello Serrin,

Thank you for reporting this issue. By the end of this week there will be a release in which the problem will be fixed.

Greetings,
Kiril Stanoev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
MediaPlayer
Asked by
Serrin
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or