Open romyca opened 3 years ago
I get the same issue.
\plugins\CodeAlignmentNpp\CodeAlignmentNpp.dll
Failed to load
CodeAlignmentNpp.dll is not compatible with the current version of Notepad++.
This occurs when opening npp. Are CodeAlignment.Common.dll and CodeAlignment.Common.WinForms.dll supposed to be 32bit or 64bit? they look 32bit to me but i'm no expert. this is how i checked
tested on CodeAlignmentNpp_v14.1_x64 witn npp.8.1.1.portable.x64
Thanks for the comment from Chris. I just ran into this and used to the instructions from the npp community forum: Meta Chuh Feb 19, 2019, 5:45 AM @RAMA-KRISHNA
important: do not change anything else on your notepad++ installation, unless instructed by @PeterJones , me, or another community regular from here, or else any guides will not work, as we do not have tracks of your recent changes.
guide to install the code alignment npp plugin on your system with exactly this configuration: note: this guide will not work, if you changed your configuration again.
Notepad++ v7.6.3 (64-bit) Build time : Jan 27 2019 - 17:16:47 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 10 (64-bit) Plugins : ComparePlugin.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppTextFX.dll PluginManager.dll ViSimulator.dll
make sure you follow all steps precisely:
download CodeAlignmentNpp_v14.1_x64.zip from >>> here <<<.
extract CodeAlignmentNpp_v14.1_x64.zip to your desktop and open it in an explorer window.
open another explorer window and go to C:\Program Files\Notepad++\plugins
create a new folder CodeAlignmentNpp inside of plugins note: the folder name has to be written exactly like that. (the resulting folder is C:\Program Files\Notepad++\plugins\CodeAlignmentNpp)
copy CodeAlignmentNpp.dll from your downloaded “CodeAlignmentNpp_v14.1_x64” folder to C:\Program Files\Notepad++\plugins\CodeAlignmentNpp.
copy the folder CodeAlignment from your downloaded “CodeAlignmentNpp_v14.1_x64” folder to C:\Program Files\Notepad++\plugins\CodeAlignmentNpp.
restart notepad++ and your Code Alignment plugin is ready to go.
important note: please remove your PluginManager.dll, as it is incompatible with notepad++ 7.6.3 and will write files to the wrong loctions. (remove the folder C:\Program Files\Notepad++\plugins\PluginManager completely)
Works perfectly now. thanks -BR, Lee
This issue resurfaced for me recently.
After some digging i found this exception was occurring.
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.
a workaround for this is to include a notepad++.exe.config
alonside the notepad++.exe
file containing the following.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration>
Trying to install Code Alignment v.14.1.107 (32-bit) into Notepad++ v7.9.5 (32-bit) portable: