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

RadMediaPlayer issue...

3 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc Roussel
Top achievements
Rank 2
Marc Roussel asked on 17 Jan 2010, 11:22 PM
Hi,

I just added a RadMediaPlayer for the first time on my form and when I build this is what I got.  Any idea ?

Error 1 The "ValidateXaml" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files (x86)\Telerik\RadControls for Silverlight Q3 2009 SP1\Binaries\Silverlight\Telerik.Windows.Controls.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Program Files (x86)\Telerik\RadControls for Silverlight Q3 2009 SP1\Binaries\Silverlight\Telerik.Windows.Controls.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()
   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)

 GearSite


Thank you

3 Answers, 1 is accepted

Sort by
0
Marc Roussel
Top achievements
Rank 2
answered on 17 Jan 2010, 11:50 PM
I tried to unblock the file and even tought I do unblock them they stay blocked.
Because when I go back to see they're still blocked.

Could it be something about it ?
If so What do we do ?
I did the upgrade directly from Telerik menu in VS2010

I'm unable to compile my solution anymore and I need imediate help if possible
0
Marc Roussel
Top achievements
Rank 2
answered on 18 Jan 2010, 12:02 AM
Well, this is really it.  I had to make sure I have full control over the Silverlight directory and then for each individual dll I had to UNBLOCK the file.

I just hope I will not have to do it each time I upgrade the product ?
0
Marc Roussel
Top achievements
Rank 2
answered on 18 Jan 2010, 11:50 AM
I don't know if this could help others but here's what I did
I did enable "Do not preserve zone information in file attachments"
by running gpedit.msc at the command prompt.

http://pages.videotron.com/gear/zone.jpg
Tags
GridView
Asked by
Marc Roussel
Top achievements
Rank 2
Answers by
Marc Roussel
Top achievements
Rank 2
Share this question
or