Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll
I'm trying to download a file with WebClient class via SSL.
new System.Net.WebClient().DownloadString("https://file")
But I'm getting this ugly开发者_高级运维 exception: Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll.
Google search said that I would have a security.dll in my bin folder. But I don't!
Thanks.
What have you called your assemblies? It sounds like something is getting in the way of loading the standard Windows security.dll, which .NET wants to use. If your assembly, or any assembly in your directory is called security.dll that will get loaded first, and then everything falls apart.
If that's not the case there may be one in your path, try dir /s security.dll
from the root of all your drives to see if there are other DLLs named badly ...
精彩评论