Recently I was using the trial version of Telerik Silverlight controls, and after a monteh the company bought the full version, but after updating the projects I'm now getting the following error when I open the XAML files on my Visual Studio 2010 designer:
The document contains error that must be fixed vefore the designer can be
loaded. Reload the designer after you have fixed the errors.
I try to reload the designer, but it give me this stack trace:
ArgumentNullException was thrown due to document error: Value cannot be null.
Parameter name: key Click here to hide detail.
An Unhandled Exception has ocurred
Value cannot be null.
Parameter name: key
at System.Collections.Generic.SortedList`2.IndexOfKey(TKey key)
at Microsoft.Expression.DesignModel.DocumentModel.DocumentCompositeNode.PropertyDictionary.Contains(IProperty propertyKey)
at Microsoft.Expression.DesignModel.Core.UserControlInstanceBuilderHelper.ShouldInstantiatePreviewControl(IInstanceBuilderContext context, ViewNode viewNode, XamlDocument& sourceDocument, String& sourcePath)
at Microsoft.Expression.Platform.Silverlight.InstanceBuilders.UserControlInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
at MS.Internal.Services.DesignModeValueProviderService.DesignModeValueProviderBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
at Microsoft.Expression.DesignModel.Core.ViewNodeManager.Instantiate(ViewNode viewNode)
Anyone know how can I fix it?
Thanks in advance!
6 Answers, 1 is accepted
I can not realy point to a responsible control because all my XML's are affected. Did anybody from support allready pick this up?
May I ask you to test with the Latest Internal Build which will be available for download later today?All the best,
the Telerik team
Thanx for the swift reply but, could you be a little bit more specific? I have for the moment build v2012.2.912.1050 installed. When I try to update, the upgrade wizard tells me that my system is up to date and no download is required.
Oh yes, and maybe another question. How crazy (and possible) is it, in a case like this, to do a downgrade of the build? With other words, if I do select a previous version in the upgrade wizard, will my project be downgraded without any problems?
The last Latest Internal Build is with version 2012.2.1001. You can check this help article for a detailed instructions on how to install a hotfix. In order to have an access to the LIB through the Upgrade Wizard, you should enable that option in the Options Window as explained in this help article.
As to your last question, you could use the Wizard to upgrade or downgrade the version.
the Telerik team
I'm still suffering the same problem. The code compiles & runs whitout any problem. Also viewing the XAML ain't a problem but the moment I dare to click the Design-screen of a XAML-file, I receive an empty screen , with errormessage on the top. Going back to the XAML gives complete foaulted code. I'll attach some screenshots and the code of one of my XAML-files.
I have tested your code snippet in a UserControl in a test project referencing the latest binaries for Silverlight 5 and the Designer was shown fine at my end.
May I ask you to isolate the problem in a demo project and send it to us?
the Telerik team