connection issue to azure cognitive search from asp.net mvc website

后端 未结 1 1156
终归单人心
终归单人心 2021-01-26 11:27

I have a asp.net mvc website developed in .NET framework 4.7. getting connection issue from hosted website. can you please help

An error occurred while sending the

相关标签:
1条回答
  • 2021-01-26 12:05

    I usually face this error while debugging, but if you deploy this it will disappear.
    For debugging purpose, add following lines before calling external services.
    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

    0 讨论(0)
提交回复
热议问题