I'm not sure. What I have been able to determine is:
For the website, the identity of the user using the code below is:
System.Security.Principal.
For the website: SERVER_NAME\ASPNET
For the Service: NT AUTHORITY\SYSTEM
The web application installs certificates into the CurrentUser store, which is why when I query that store using the Service, I get no certificates. Because the website used 'SERVER_NAME\ASPNET' as the CurrentUser and the Service used 'NT AUTHORITY\SYSTEM'
Is there not any way to perhaps create a totally new user on the Server and somehow force both the web application AND the service to use this account.
For example, create a user called CERTUSER and then always use SERVERNAME\CERTUSER somehow?
I'm a little confused when it comes to user permissions, I must admit!
Thanks
Main Topics
Browse All Topics





by: kaufmedPosted on 2009-05-27 at 04:52:14ID: 24481916
Does the user with which you are executing the service have permissions to access the store?