专业网站建设品牌,十四年专业建站经验,服务6000+客户--广州京杭网络
免费热线:400-683-0016      微信咨询  |  联系我们

微信证书发布涉及到的问题

当前位置:网站建设 > 技术支持
资料来源:网络整理       时间:2023/2/14 0:47:06       共计:3645 浏览

参考网址:

http://www.cnblogs.com/jys509/p/4499978.html

这个问题被搞了好久,一直没找到解决方式,网上解决方案倒是很多,但是之前找到的,尝试过都不行,今天总算是给解决了

问题描述:

System.Security.Cryptography.CryptographicException: 出现了内部错误。

   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
   at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx)
   at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password)
   at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
   at Qxun.Framework.Weixin.NativePay.HttpService.Post(String xml, String url, Boolean isUseCert, Int32 timeout) in 位置

拒绝访问,也不知道为啥会拒绝,发布出去的机制总归和本地不同。这个方法要再不行,就去尝试一下https。幸好成功了。

处理方法:

IIS 应用程序池--选中你网站的所配置的应用程序池--右键 选择 “高级配置” --将“加载用户配置文件” 设置为True 。问题解决

转载于:https://www.cnblogs.com/danlis/p/5323320.html

版权说明:
本网站凡注明“广州京杭 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
欢迎扫描右侧微信二维码与我们联系。
·上一条:详解vue-video-player使用心得(兼容m3u8) | ·下一条:C#多线程学习笔记 Task启动方式、Task阻塞、Task.Delay()、多线程异常处理、任务取消、多线程的临时变量、共享数据的lock、Task返回值、定时器

Copyright © 广州京杭网络科技有限公司 2005-2025 版权所有    粤ICP备16019765号 

广州京杭网络科技有限公司 版权所有