Asp.net Facebook Connect:根据验证过程,远程证书无效

Asp.net Facebook Connect:根据验证过程,远程证书无效,asp.net,facebook,certificate,Asp.net,Facebook,Certificate,从今天起,在我自己的服务器上不做任何更改的情况下,我在尝试通过Facebook connect连接Facebook时遇到了这个错误 我注意到这个帖子: 但是那里提供的解决方案不起作用,而且我的代码一直都是有效的。 在本地,它仍然可以正常工作,但一旦我连接到生产上,它就失败了 更新 我现在发现我仍然可以在同一VPS上的其他网站上使用Facebook Connect…只有这个网站突然出现问题。它是共享代码,所以它肯定不是我代码中的内容。可能是什么 Server Error in '/' Applic

从今天起,在我自己的服务器上不做任何更改的情况下,我在尝试通过Facebook connect连接Facebook时遇到了这个错误

我注意到这个帖子: 但是那里提供的解决方案不起作用,而且我的代码一直都是有效的。 在本地,它仍然可以正常工作,但一旦我连接到生产上,它就失败了

更新
我现在发现我仍然可以在同一VPS上的其他网站上使用Facebook Connect…只有这个网站突然出现问题。它是共享代码,所以它肯定不是我代码中的内容。可能是什么

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.  

Stack Trace: 



[AuthenticationException: The remote certificate is invalid according to the validation procedure.]
   System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) +2755228
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +470
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +470
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +470
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +470
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +8551966
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +230
   System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +645
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +9
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +87
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1467
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +84
   System.Net.ConnectStream.WriteHeaders(Boolean async) +816

[WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.]
   System.Net.HttpWebRequest.GetResponse() +8420768
   oAuthFacebook.WebResponseGet(HttpWebRequest webRequest) +441



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212 

据我所知,您的应用程序无法验证某些远程证书。您可以通过连接到使用浏览器或openssl提供假定无效证书的服务器并查看他们对远程证书的说明来启动诊断。可能证书确实无效。谢谢。我该怎么做呢?“连接到使用浏览器或openssl提供假定无效证书的服务器,并查看他们对远程证书的说明。”请将浏览器指向该地址。很抱歉,我不理解,但请指出哪个地址?我相信我的浏览器已经指向了地址,因为我在那里收到了错误…我如何调试?(将我的实际站点替换为example.com):异常发生在服务器上,在连接到某个第三方资源的代码中。您需要找出代码连接到的确切地址,并在计算机上本地测试该地址。