Problem Running Windawesome

Mar 22, 2012 at 4:37 AM

I get this error in the log:

3/21/2012 9:29:45 PMAssemblies:Windawesome, Version=1.3.2.0, Culture=neutral, PublicKeyToken=nullmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3aSystem.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Microsoft.Scripting, Version=1.1.0.20, Culture=neutral, PublicKeyToken=7f709c5b713576e1System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1IronRuby, Version=1.1.3.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

OS: Microsoft Windows NT 6.1.7601 Service Pack 1CLR: 4.0.3031964-bit OS: True64-bit process: TrueElevated: TrueSystem.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\Jimmy\Desktop\New folder\Layouts\TileLayout.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)File name: 'file:///C:\Users\Jimmy\Desktop\New folder\Layouts\TileLayout.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.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 Windawesome.Config.PluginLoader.GetEngineForFile(FileSystemInfo file)   at Windawesome.Config.PluginLoader.LoadAll(Windawesome windawesome, Config config, IEnumerable`1 files)   at Windawesome.Windawesome..ctor()   at Windawesome.Program.Main()

Inner Exception: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.

Do you have any idea what is causing this?

Coordinator
Mar 23, 2012 at 8:21 AM

Hello,

I actually have no idea. But this:

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.

Has some information in it. Is that (starting from a network location) what you are actually doing? It doesn't seem like so. Anyway, after a short googling, I found this link for example:

http://stackoverflow.com/questions/3007190/vsts-2010-sgen-error-could-not-load-file-or-assembly-exception-from-hresult

Could you try some of the fixes proposed there and see if they work for you?

Regards!