System.Security.Authentication.AuthenticationException:根据验证过程,远程证书无效。

在将网站从Win10和Windows Server 2012迁移至Windows Server 2003后,遇到了'远程证书无效'的问题,导致应用程序错误。异常详细信息为System.Security.Authentication.AuthenticationException,指出远程证书根据验证过程无效,基础连接已关闭,无法为SSL/TLS安全通道建立信任关系。解决方案是在一般处理程序中处理请求前进行特定设置。
摘要由CSDN通过智能技术生成

 好久没写博客了,今天突然遇到个神奇的问题。

做好的网站在win10上和Windows sever 2012 上都没有问题,搬到Windows sever 2003上就出现了这么一个错误:

Server Error in '/' Application.


The remote certificate is invalid according to the validation procedure.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值