小编lng*_*lng的帖子

在.Net Compact Framework中将文件内容读取为字符串

我正在使用.net compact framework 2.0为移动设备开发应用程序.我试图将文件的内容加载到字符串对象,但不知怎的,我无法完成它.班上没有ReadToEnd()方法System.IO.StreamReader.是否有另一个类提供此功能?

.net c# compact-framework

50
推荐指数
3
解决办法
9万
查看次数

ServicePointManager SecurityProtocol冲突

在我的应用程序中,我使用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)

我该如何解决这个问题?

.net c# system.net.mail restsharp

10
推荐指数
1
解决办法
1777
查看次数

将选项组与现有RDS实例相关联

我有一个现有的MSSQL 12 Express RDS实例。我想为此实例启用本机还原和备份。根据官方文档,我创建了一个选项组。如何使用Web界面将此选项组与我的RDS实例相关联。

amazon-web-services aws-rds

2
推荐指数
1
解决办法
2149
查看次数