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

GridView HRESULT E_FAIL

3 Answers 316 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bfeltz
Top achievements
Rank 1
bfeltz asked on 04 Dec 2008, 08:04 PM

The VS 2008 preview pane displays the following error when i add a gridview.

 

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 System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) 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)

 

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.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(Size availableSize) at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

 


This happens in my own project as well as the GridNamespaceTest recently posted to the forum

The follollowing XAML causes this for me

<

UserControl

 

 

 

xmlns

:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

 

 

 

x

:Class="GridNamespaceTest.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">

 

 

 

 

<telerik:RadGridView Name="RadGridView1"></telerik:RadGridView>

 

 

 

 

</Grid>

 

</

UserControl>

 

 

3 Answers, 1 is accepted

Sort by
0
Jimmy
Telerik team
answered on 05 Dec 2008, 01:30 PM
Hello bfeltz,

The problem you are experiencing has nothing to do with your project, but it's rather minor problem that we have in our CTP which will be fixed in our Beta release coming out in mid-December.

All the best,
Jimmy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sundar
Top achievements
Rank 1
answered on 12 Feb 2009, 09:31 AM
Hi Jimmy,

I face this problem even after I installing the 
RadControls_for_Silverlight_2008_3_1217_TRIAL_Futures.msi

Any solution would be really helpful.

Sundar
0
Valeri Hristov
Telerik team
answered on 13 Feb 2009, 11:20 AM
Hi Sundar,

Could you check if your project has references to Telerik.Windows.Data and Telerik.Windows.Controls? When you drag a control from the toolbox Visual Studio fails to add all needed references, hence the error.

Best wishes,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
bfeltz
Top achievements
Rank 1
Answers by
Jimmy
Telerik team
Sundar
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or