关于Open Live Writer代码着色插件

根据博客园推荐的博客下载了着色插件,发现配置后不好用,查看LOG后,发现不管是OLW版本是0.6.0,还是0.6.2都会报如下错误,根本原因是OLW所有的DLL面向的平台是x86的,前者基于.net4.5.2编译,0.6.2基于4.6.1编译。这里重新编译了一下两个不同的版本。插件下载

OpenLiveWriter,1.11744,None,00005,08-Aug-2017 15:43:51.289,"Failed to load assembly C:\Users\-\AppData\Local\OpenLiveWriter\app-0.6.0.0\Plugins\OpenLiveWriter.CNBlogs.SourceCode.dll on attempt 2",""
OpenLiveWriter,1.11744,None,00006,08-Aug-2017 15:43:52.290,"Failed to load assembly C:\Users\-\AppData\Local\OpenLiveWriter\app-0.6.0.0\Plugins\OpenLiveWriter.CNBlogs.SourceCode.dll on attempt 3",""
OpenLiveWriter,1.11744,None,00007,08-Aug-2017 15:43:52.290,"Failed to load plugin assembly [C:\Users\-\AppData\Local\OpenLiveWriter\app-0.6.0.0\Plugins\OpenLiveWriter.CNBlogs.SourceCode.dll]",""
OpenLiveWriter,1.11744,None,00008,08-Aug-2017 15:43:52.296,"System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\-\AppData\Local\OpenLiveWriter\app-0.6.0.0\Plugins\OpenLiveWriter.CNBlogs.SourceCode.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Users\-\AppData\Local\OpenLiveWriter\app-0.6.0.0\Plugins\OpenLiveWriter.CNBlogs.SourceCode.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, 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.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at OpenLiveWriter.CoreServices.PluginLoader.LoadFromWithRetry(String assemblyPath, Int32 numRetries)
   at OpenLiveWriter.CoreServices.PluginLoader.LoadPluginsFromAssemblyPath(String assemblyPath, Boolean showErrors)
posted @ 2017-08-09 10:20  hzer  阅读(162)  评论(0编辑  收藏  举报