我正在使用.net compact framework 2.0为移动设备开发应用程序.我试图将文件的内容加载到字符串对象,但不知怎的,我无法完成它.班上没有ReadToEnd()
方法System.IO.StreamReader
.是否有另一个类提供此功能?
在我的应用程序中,我使用RestSharp查询REST API和System.Net.Mail来发送电子邮件.在程序启动时,我设置了ServicePointManager.SecurityProtocol属性.
如果我将属性设置为:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;
Run Code Online (Sandbox Code Playgroud)
使用RestSharp查询API时抛出异常:
The request was aborted: Could not create SSL/TLS secure channel
Run Code Online (Sandbox Code Playgroud)
如果我将属性设置为:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls11;
Run Code Online (Sandbox Code Playgroud)
使用System.Net.Mail发送电子邮件时抛出异常:
System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我有一个现有的MSSQL 12 Express RDS实例。我想为此实例启用本机还原和备份。根据官方文档,我创建了一个选项组。如何使用Web界面将此选项组与我的RDS实例相关联。