问题描述
获取错误此操作仅允许使用成功验证的上下文尝试从IIS中部署的asp.net应用程序编写sslStream,用于发送苹果推送通知。相同的代码从Windows应用程序正常工作。
请帮忙解决这个问题
Hi,
Getting error "this operation is only allowed using a successfully authenticated context" while trying to write sslStream from asp.net application deployed in IIS for sending apple push notification. Same code is working fine from windows application.
Please help to solve this issue
推荐答案
此方法在操作完成时阻塞。要在操作完成时阻止阻止,请使用 方法。
This method blocks while the operation completes. To prevent blocking while the operation completes, use the BeginWrite method.
在成功通过身份验证之前,无法调用此方法。验证调用其中一个 ,或 , , m方法。
You cannot call this method until you have successfully authenticated. To authenticate call one of the AuthenticateAsClient, or BeginAuthenticateAsClient, AuthenticateAsServer, BeginAuthenticateAsServer methods.
类不支持多个同时写入操作。
The SslStream class does not support multiple simultaneous write operations.
这篇关于在IIS中的sslStream.write命令中获取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!