Hello,
I'm working with the recently released Expression Blend 3, building a Silverlight 3 prototype using the new SketchFlow. I want to include the Telerik gridview in the prototype and display the power of your grid to my stakeholders. However, I've run into a problem that I think is related to what I see in this thread.
My prototype packages and runs just fine until I drop your gridview control on a secondary screen and run it. I get no build issues but when running and I navigate to a screen containing the gridview, I get the ctor error listed at the bottom of this reply.
My configuration is:
- Expression Blend 3
- Silverlight 3 RTM
- Visual Studio 2008 SP1
- Telerik RadControls for Silverlight Q2 2009
I still have Silverlight 2 and the v2 toolkit installed.
My project references the following items from Telerik binaries Silverlight folder:
- Telerik.Windows.Controls.dll
- Telerik.Windows.Controls.GridView.dll
- Telerik.Windows.Data.dll
My project references these from Silverlight 3.0 libraries:
- System.Windows.Data.dll
- System.Windows.Controls.Data.dll
- etc.
When I try to add a reference to the System.Windows.Controls.Data.dll in the Telerik folder, it says it is already in the project (the SL 3 version). The error seems to indicate the gridview is compiled against version System.Windows.Controls.Data 2.0.50. Is there a way to get this working?
******************************************************************************************************
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 4.0.20506)
Timestamp: Wed, 29 Jul 2009 15:45:44 UTC
Message: Unhandled Error in Silverlight Application Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified. at Telerik.Windows.Controls.GridView.GridViewDataControl.InitializeGroupCount()
at Telerik.Windows.Controls.GridView.GridViewDataControl..ctor()
at Telerik.Windows.Controls.RadGridView..ctor()
Line: 1
Char: 1
Code: 0
URI: http://localhost:5397/TestPage.html
Message: Unhandled Error in Silverlight Application Exception has been thrown by the target of an invocation. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName)
at Microsoft.Expression.Prototyping.Workspace.PlayerWindow.InstantiateScreen(String screen, Boolean showImmediately)
at Microsoft.Expression.Prototyping.Workspace.PlayerWindow.TransitionScreens(String from, String to)
at Microsoft.Expression.Prototyping.Navigation.NavigationViewModel.NavigateToScreen(String name, Boolean record)
Line: 1
Char: 1
Code: 0
URI: http://localhost:5397/TestPage.html
******************************************************************************************************