RadMediaPlayer issue...

4 posts, 0 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 17 Jan 2010 Link to this post

    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
  2. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 17 Jan 2010 Link to this post

    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
  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 17 Jan 2010 Link to this post

    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 ?
  5. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 18 Jan 2010 Link to this post

    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
Back to Top