Wednesday 15 May 2013

Error building Visual Studio 2010 Silverlight 4 projects on Windows 7 with XP Mode -


I Visual Studio Beta 2 XP Mode VM 2010 Windows 7 I made a small Silverlight 4 (Beta) Installed project and tried to make it.

Error 1 "ValidateXaml" operation failed unexpectedly: I get the following error. System.IO.FileLoadException: file or file could not be loaded assembly: // \ tsclient \ d \ Users \ me \ Documents \ Visual Studio 2010 \ Projects \ SilverlightApplication2 \ SilverlightApplication2 \ obj \ Debug \ SilverlightApplication2.dll one or Your dependence The operation is not supported. (Exception from HRESULT: 0x80131515)

File name: 'file: // \ tsclient \ d \ Users \ me \ Documents \ Visual Studio 2010 \ Projects \ SilverlightApplication2 \ SilverlightApplication2 \ obj \ Debug \ SilverlightApplication2.dll '---' System.NotSupportedException: An attempt was made to load an assembly from a sandbox in previous versions of the .NET Framework that generated a network space. This release of .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended for sandbox assembly, please enable loadFromRemoteSources switch. See for more information.

On the system Reflection.randomimedxide _anlod (assembly name filename, string codebase evidence assembly security, runtime assembly space, stack crawl mark and stack marker, Boolean Fenkonfail Notfand, Boolean For Introspikshn, Boolean subscription Czech) system. System Name System, String codebase, evidence assembly security, runtime assembly space, stack crawl mark and stack marker, Boolean Fenkonfail Notfound, Boolean for Introspikshns, Boolean suppress security checks). reflection. Rendime. Name of assembly Assembly name assembly RF, Evidence Assembly security, Stack crawl mark and Stack marker, Boolean forIntrospection, Boolean suppressSecurityChecks) System.Reflection.RuntimeAssembly.InternalLoadFrom (string assemblyFile, Evidence securityEvidence, Byte [] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forEtrosp Ection, Boolean suppress security checks, stack crawl mark & ​​amp; stackMark) System.Reflection.Assembly.LoadFrom on Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute on Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute (string assemblyFile ) (ITask Tasks) (ITask Tasks) Microsoft.Silverlight Build.Task on On Microsoft Valid.Xidit () Microsoft. Bail. Backend Task Execution Host Microsoft. Build. Backend On Microsoft Biscuits. Biscuit Task Builder Execute InstitutionateTsk (iTuskExecutionOut TaskExecutionHost, Task LaggingContact Task LaggingConnecte, taskHost taskHost, ItemBucket Bucketty, TaskExecutionMode howToExecuteTask, Boolean & taskResult)

I believe the fact is that XP mode redirects The folder for hosting the document, it is related to the change in a network, share the location, and trigger some types of CAS / security policy. Being.

Does anybody know how to fix this?

"itemprop =" text ">

After & lt; LoadFromRemoteSources enabled = "true" />

in your configuration file


No comments:

Post a Comment