Mikescher/AlephNote

Plugins can't load (v1.7.8)

Closed this issue · 3 comments

I'm getting the same message for all 6 plugins on start, and then 2 messages about "Alephnote needs at least one active plugin". Everything works fine if I copy plugins from version 1.7.7.

System.IO.FileLoadException: Could not load file or assembly 'EvernotePlugin, Version=0.0.0.18, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'EvernotePlugin, Version=0.0.0.18, Culture=neutral, PublicKeyToken=null' ---> 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, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at AlephNote.Impl.PluginManager.LoadPluginsFromAssembly(String path)
   at AlephNote.Impl.PluginManager.LoadPlugins(String baseDirectory)

Did you manually update AlephNote or via the built-in updater?

Can you do a right-click->properties on one of the dlls in the plugins folder and see if one is blocked under security (see also here in the Readme )

If it is the later one, can you try unzipping the following file and putting it besides AlephNote.exe and try restart it
(if this works I could ship it in the next update)

AlephNote.exe.config.zip

I updated it manually, and yes, all of them were blocked. It works if you unblock them.

can you try unzipping the following file and putting it besides AlephNote.exe

Yes, this also works, thanks.