Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 部署连接到RavenDB的ASP NET核心应用程序_C#_Asp.net_Asp.net Core_Ravendb_Azure Web App Service - Fatal编程技术网

C# 部署连接到RavenDB的ASP NET核心应用程序

C# 部署连接到RavenDB的ASP NET核心应用程序,c#,asp.net,asp.net-core,ravendb,azure-web-app-service,C#,Asp.net,Asp.net Core,Ravendb,Azure Web App Service,我正在尝试将一个.NET核心应用程序部署到Azure,该应用程序连接到RavenDB,本地没有问题,因为它需要在连接初始化时安装和读取证书,问题是当它在云中时,它向我显示此错误: The SSL connection could not be established, see inner exception. -> The credentials supplied to the package were not recognized (The SSL connection could n

我正在尝试将一个.NET核心应用程序部署到Azure,该应用程序连接到RavenDB,本地没有问题,因为它需要在连接初始化时安装和读取证书,问题是当它在云中时,它向我显示此错误:

The SSL connection could not be established, see inner exception. -> The credentials supplied to the 
package were not recognized (The SSL connection could not be established, see inner exception.

我找不到解决方法,我将证书包括在生产版本中,并从应用程序服务Azure控制面板安装证书。我真的很想知道如何解决这个问题,我在其他地方搜索时没有找到解决方案

如何在应用程序中加载客户端证书? 尝试使用机器按键设置标志


[DocumentStore].Certificate=new X509Certificate2(“[client cert path]”,(string)null,X509keystrageFlags.MachineKeySet)

您可以共享读取证书的代码吗?