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

RadControls for silverlight 4 RC

5 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fabiana
Top achievements
Rank 1
Fabiana asked on 17 Mar 2010, 03:16 PM
Hello!

I installed RadControls version: RadControls_for_Silverlight_2010_1_0309_TRIAL, and now I get new binaries for silverlight 4 RC, and updated binaries folder, with 00457RadControls_for_Silverlight4_2010_1_0312_Trial dlls

I did my own theme based on Windows7...but my project not compile more with this RadControls for silverlight 4 RC. See error:



Error    1    The "ValidateXaml" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
   at MS.MarkupCompiler.ValidationPass.ValidateXaml(String fileName, Assembly[] assemblies, Assembly callingAssembly, TaskLoggingHelper log, Boolean shouldThrow)
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute(ITask task)
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute(ITask task)
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)    MyCustomTheme



I am sending my project too.

Thanks!


5 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 18 Mar 2010, 05:19 PM
Hi Fabiana,

Could you please, open a new support ticket and send your theme to us, so we will be able to fix it and send it back to you.

Kind regards,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mark McPherson
Top achievements
Rank 1
answered on 18 Mar 2010, 08:49 PM
Repost from RadControls for Silverlight CTP

 


After downloading the RadControls for Silverlight 4 and copying them to the VS Public Assemblies folder I get the following error when I try to complie a VS2010 SL4 program in which I have included the RadGridView Control

Error 1 Could not load file or assembly
'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies.
The system cannot find the file specified.

When I remove the RadGridView and delete all references to Telerik assemblies the program will compile successfully.

The error shown above is repeated for all the xaml files.

The reference to System.Windows shows a Version of 2.0.5.0 in the property viewer.
Is it possible that the PublicKeyToken referenced in the above message is not the same as the PublicKeyToken in
c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Windows.dll?

I added the RadGridView to the toolbox and dragged it onto the designer to produce the results outlined above.

Other Telerik RadControls for SL4 produce the same result.

Any suggestions on how to solve this would be appreciated.
0
Valeri Hristov
Telerik team
answered on 19 Mar 2010, 10:26 AM
Hi Mark,

Why did you put the Telerik assemblies to the Public Assemblies folder of Visual Studio? This is not needed and I suppose it is the reason for the broken references - Visual Studio somehow is loading the wrong assemblies, most probably because it preferes certain directories over other (Public, Private, other). Generally, the Telerik control assemblies should be in a folder outside Visual Studio and the design assemblies should be in a subfolder of that folder, named design.

All the best,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mark McPherson
Top achievements
Rank 1
answered on 19 Mar 2010, 11:48 AM
Valeri,

I was following information given in one of the Telerik Blog posts about how to add the controls to the toolbox manually. I believe it was from Evan's blog.

I removed the trail files from the VS Public Assemblies and placed then under a folder outside of VS 2010. RadControls appear to work correctly. I have not done any real testing yet.

Thanks for the response.

Mark
0
Valeri Hristov
Telerik team
answered on 19 Mar 2010, 12:23 PM
Hi Mark,

If I remember correctly, Evan's blog was about RadControls for WPF, the instructions do not apply for RadControls for Silverlight. I apologize if that was not clearly explained in the blog post.

Regards,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Fabiana
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Mark McPherson
Top achievements
Rank 1
Share this question
or