C# 无法从ssl站点获取数据

C# 无法从ssl站点获取数据,c#,.net,iis-7,C#,.net,Iis 7,好的,我让这个服务器在运行时有一个通配符证书。 在每一个浏览器中,我都尝试了一切,但我的用户在连接上有问题 这里的主要问题是,我的软件中有通过ssl的api调用,对于某些用户来说,它根本不起作用。这是我收集到的例外 WARN 2013-05-07 16:18:12,562 3.1.18.102 [11] Octgn.Launcher.LoginNew [(null)] - Login Request Failed System.Net.WebException: The underlying

好的,我让这个服务器在运行时有一个通配符证书。 在每一个浏览器中,我都尝试了一切,但我的用户在连接上有问题

这里的主要问题是,我的软件中有通过ssl的api调用,对于某些用户来说,它根本不起作用。这是我收集到的例外

WARN  2013-05-07 16:18:12,562 3.1.18.102 [11] Octgn.Launcher.LoginNew [(null)] - Login Request Failed
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: The decryption operation failed, see inner exception. ---> System.ComponentModel.Win32Exception: The message received was unexpected or badly formatted
 --- End of inner exception stack trace ---
at System.Net.Security._SslStream.ProcessReadErrorCode(SecurityStatus errorCode, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest, Byte[] extraBuffer)
at System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at Octgn.Launcher.LoginNew.<>c__DisplayClass14.<DoLogin>b__13() in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Launcher\LoginNew.xaml.cs:line 269
有什么想法吗?我不确定这是不是我的错,也许我需要把我的公钥放在软件里,然后以某种方式把它注入我的通话中,或者可能用户的电脑设置得很搞笑或者什么的

我能得到的每一个迹象都表明我的ssl是正确的,我并没有从很多用户那里得到,但它每次都发生在少数人身上,我不确定这里出了什么问题

更多信息: 用户的报价

“Internet Explorer无法显示该网页。”

但在其他浏览器上都可以正常工作。”

还有,另一句话

以下是我的SSL测试结果的屏幕截图:

我已经尝试将https://*.octgn.net添加到IE中,但似乎没有什么不同

如果有帮助的话,它会在登录页面上说,我也无法检索新闻标题

新闻标题也是服务器上的xml文档


调用服务器的应用程序也是客户端应用程序,不是浏览器应用程序。

通过ssl的跨域请求可能有问题。请检查此链接


检查用户名/密码/电子邮件中是否存在可能导致编码问题的特殊字符/转义序列?我不想检查,但也看看我最近添加到帖子中的内容。是的,传递的数据只是字母和数字。这不是跨域的,这是一个wpf应用程序。
using (var wc = new WebClient())
{
    try
    {
        Log.Info("Sending login request");
        var ustring = AppConfig.WebsitePath + "api/user/login.php?username=" + HttpUtility.UrlEncode(username)
                      + "&password=" + HttpUtility.UrlEncode(password);
        if (email != null) ustring += "&email=" + HttpUtility.UrlEncode(email);
        var res = wc.DownloadString(new Uri(ustring));
        res = res.Trim();
        Log.Info("Do Login Request Result: " + res);
    }
    catch(Exception e)
    {
        Log.Warn("Login Request Failed",e);
        this.LoginFinished(LoginResult.Failure, DateTime.Now,"Please try again later.");
    }
}