问题描述
我正在使用 google SSO 类实用程序。禁用服务器TLS1.0、TLS1.1和RC4后,出现google SSO功能错误。如何解决问题?错误在这里:
未将对象引用设置为对象的实例。 说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误及其在代码中的来源的更多信息。
异常详细信息:System.NullReferenceException:未将对象引用设置为对象的实例。
源错误:
第 116 行:catch (WebException ex) 第 117 行:{ 第 118 行:使用 (var reader = new System.IO.StreamReader(ex.Response.GetResponseStream())) 第 119 行:{ 第 120 行:var responseText = reader.ReadToEnd();
源文件:d:\wwwroot\Info\googleSSO\SSOcallback.aspx.cs 行:118
堆栈跟踪:
[NullReferenceException: 未将对象引用设置为对象的实例。] d:\wwwroot\Info\googleSSO\SSOcallback.aspx.cs:118 中的 GoogleSSO.Utility.GetTokenFromCode(String code,String ClientId,String ClientSecret,String redirect_uri) WebApplication1.SSOcallback.Page_Load(Object sender,EventArgs e) in d:\wwwroot\Info\googleSSO\SSOcallback.aspx.cs:24 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +95 System.Web.UI.Control.LoadRecursive() +59 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterasyncPoint) +678
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)