You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@filmor this might actually be a bug fixed in #1076 : it is possible, that "VcClient.dll" is either not a .NET DLL, or has wrong processor architecture, or does not have all its dependencies satisfied. In that case current implementation of AddReference always throws FileNotFoundException.
@lostmsu Thank you .
It report exception like this :
It looks like a support problem. But anyway Thanks a lot.
---------------------------------------------------------------------------
NotSupportedException Traceback (most recent call last)
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.
The above exception was the direct cause of the following exception:
FileLoadException Traceback (most recent call last)
<ipython-input-3-cd28dedc6753> in <module>
----> 1 Assembly.LoadFrom("D:\\home\\lzw\\VcClient.dll")
FileLoadException: Could not load file or assembly 'file:///D:\home\lzw\VcClient.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
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)
Activity
filmor commentedon Mar 4, 2020
clr.AddReference("VcClient")should work. If it doesn't, please ask on the mailing list or on StackOverflow, this is not a support forum.lostmsu commentedon Mar 4, 2020
@filmor this might actually be a bug fixed in #1076 : it is possible, that "VcClient.dll" is either not a .NET DLL, or has wrong processor architecture, or does not have all its dependencies satisfied. In that case current implementation of
AddReferencealways throwsFileNotFoundException.lostmsu commentedon Mar 4, 2020
@lzw-all-in you might try to do
and see what exception you will get.
lzw-all-in commentedon Mar 4, 2020
@lostmsu Thank you .
It report exception like this :
It looks like a support problem. But anyway Thanks a lot.
lzw-all-in commentedon Mar 16, 2020
@lostmsu Finally I finish this problem use
Assembly.UnsafeLoadFrom(...). Thank you so much.