开发者

Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll

开发者 https://www.devze.com 2023-04-02 03:35 出处:网络
I\'m trying to download a file with WebClient class via SSL. new System.Net.WebClient().DownloadString(\"https://file\")

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 ...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号