WCF服务无法访问个人证书存储除非服务帐户将记录在 [英] WCF Service Unable to Access Personal Certificate Store Unless Service Account is Logged In

查看:219
本文介绍了WCF服务无法访问个人证书存储除非服务帐户将记录在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个有一个方法,它会调用在互联网上一个SOAP Web服务的WCF服务。

I created a WCF service that has a method which makes a call to a SOAP web service over the internet.

为了进行呼叫到SOAP的Web服务,它要求X.509证书被发送的HttpWebRequest

In order to make a call to the SOAP web service, it requires that an X.509 certificate be sent with the HttpWebRequest.

的X.509证书被加载到个人和信任该服务在其下运行的帐户的证书存储。

The X.509 certificates are loaded in the Personal and Trusted Certificate store of the account which the service is running under.

在服务帐户登录到服务器,一切都运行得很好。

When the service account is logged into the server, everything works just fine.

然而,当未实际登录到服务器的服务帐户,它装载了X.509证书的问题,未能设法使HttpWebRequest的时候验证。

However, when the service account is not physically logged onto the server, it has problems loading up the X.509 certificate and fails authentication when trying to make the HttpWebRequest.

我是新来的WCF服务,所以我甚至不知道从哪里开始寻找。

I am new to WCF services so I don't even know where to start looking.

谁能帮助?谢谢你。

推荐答案

但问题是,应用程序池默认不加载的服务帐户的用户配置文件。

The problem was that the app pool doesn't load the user profile of the service account by default.

您必须去的高级设置应用程序池,并设置LoadUserProfile为true。

You have to go to the advanced settings for the app pool and set LoadUserProfile to true.

这篇关于WCF服务无法访问个人证书存储除非服务帐户将记录在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆