Impossible d'utiliser le chemin HTTPS dans Assembly.LoadFrom
.Impossible de télécharger à partir du site HTTPS à l'aide de Assembly.LoadFrom
Essayé en utilisant TrustAllCertificatePolicy
classe aussi et cela ne fonctionnait pas.
J'ai donné la confiance totale au serveur en utilisant caspol de la machine client. La même URL fonctionne avec SSL désactivé. Cela ne fonctionne pas seulement pour SSL activé. aidez s'il vous plaît.
L'exception est:
System.IO.FileLoadException: Security problem encountered when connecting to URL for 'https://ip/tasks/tasks.dll'. File name: 'https://ip/tasks/tasks.dll'
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity,
Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity,
StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence,
Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated
with assembly bind failure logging. To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
Pouvez-vous définir HKLM \ Software \ Microsoft \ Fusion! EnableLog afin d'obtenir un meilleur journal des exceptions? –