SupremeFarmer Posted July 2, 2019 Share Posted July 2, 2019 Hello, I am new to PKheX and I tried to install two plugins for pkhex by putting them in a "plugins" folder in the Pkhex directory and I get the following error message Exception Details: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\admin\Downloads\PKHeX (190515)\plugins\FeebasLocator.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) File name: 'file:///C:\Users\admin\Downloads\PKHeX (190515)\plugins\FeebasLocator.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 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at PKHeX.WinForms.Main.FormLoadPlugins() at PKHeX.WinForms.Main..ctor() at PKHeX.WinForms.Program.Main() Loaded Assemblies: -------------------- mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll PKHeX, Version=19.5.15.0, Culture=neutral, PublicKeyToken=null C:\Users\admin\Downloads\PKHeX (190515)\PKHeX.exe System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null C:\Users\admin\Downloads\PKHeX (190515)\PKHeX.Core.dll System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll -------------------- User Message: An unhandled exception has occurred. PKHeX must now close. How can I fix this? Link to comment Share on other sites More sharing options...
BlackShark Posted July 2, 2019 Share Posted July 2, 2019 You need to unblock the plugin first. Right click the file, go to properties and check 'Unblock'. Windows tends to block dll files from the internet for security reasons. 1 Link to comment Share on other sites More sharing options...
SupremeFarmer Posted July 2, 2019 Author Share Posted July 2, 2019 4 minutes ago, BlackShark said: You need to unblock the plugin first. Right click the file, go to properties and check 'Unblock'. Windows tends to block dll files from the internet for security reasons. Thank you so much! Link to comment Share on other sites More sharing options...
FelipeDex Posted December 10, 2020 Share Posted December 10, 2020 On 7/2/2019 at 10:38 AM, BlackShark said: You need to unblock the plugin first. Right click the file, go to properties and check 'Unblock'. Windows tends to block dll files from the internet for security reasons. THX!!! Link to comment Share on other sites More sharing options...
JamesonTBynum Posted February 19, 2021 Share Posted February 19, 2021 Hi. I am trying to load the WC3 Plugin to get the Mystery Gift events for gen 3 and I'm having the same issue. However, when I right click on the DLL to unblock as suggested above, that check box and message does not appear. Only the attributes check boxes appear. Currently running Windows 7 VM on a 2012 Macbook Pro running OS Catalina. Can use PKHex fine without the plugins but I'd like to get them working. Exception Details: System.IO.FileLoadException: Could not load file or assembly 'file://\\vmware-host\Shared Folders\Documents\Project Pokemon Files\PKHex\plugins\WC3Plugin.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) File name: 'file://\\vmware-host\Shared Folders\Documents\Project Pokemon Files\PKHex\plugins\WC3Plugin.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.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 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext() at PKHeX.WinForms.PluginLoader.<LoadPlugins>d__1`1.MoveNext() at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at PKHeX.WinForms.Main.FormLoadPlugins() at PKHeX.WinForms.Main..ctor() at PKHeX.WinForms.Program.Main() Loaded Assemblies: -------------------- mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll PKHeX, Version=21.1.30.0, Culture=neutral, PublicKeyToken=null \\vmware-host\Shared Folders\Documents\Project Pokemon Files\PKHex\PKHeX.exe System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -------------------- User Message: An unhandled exception has occurred. PKHeX must now close. Link to comment Share on other sites More sharing options...
SkyLink98 Posted February 19, 2021 Share Posted February 19, 2021 Quote 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. You're trying to run it from cloud? If so, I suggest to move your PKHeX installation outside any Cloud/online synced folder. Link to comment Share on other sites More sharing options...
AshT Posted February 20, 2022 Share Posted February 20, 2022 I've unblocked the dll file but still cant get it to run ? also my pkhex folder doesn't have a plugins folder or do I just create one ? Link to comment Share on other sites More sharing options...
theSLAYER Posted February 20, 2022 Share Posted February 20, 2022 18 minutes ago, AshT said: I've unblocked the dll file but still cant get it to run ? also my pkhex folder doesn't have a plugins folder or do I just create one ? Just create one. Link to comment Share on other sites More sharing options...
Recommended Posts