Error 1 The "CompileXaml" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'X' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'X' ---> 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.
If this happens, your operating system may have blocked the file. To unblock it follow these steps:
1. Find the .dll
2. Open properties and click on Unblock
3. Done :-)

2 kommentarer:
Do you know what this does on the back-end? I'm having a similar problem, but it's with a DLL I'm building, so knowing what this option does would help me figure out if it needs to be done every time I clean the solution.
Also, my version of Windows doesn't have the Security section with the Unblock button on the file properties, so I'll have to edit the config file (or whatever I need to do) manually.
Thanks!
Did you try this?
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.
Post a Comment