1

The product I work on has an installer that does a whole bunch of things, including installing regular files, setting registry keys, installing websites and web services on IIS and creating scheduled tasks. We have used this installer for years and now and then we have an issue with it but we can usually get it sorted. This one has us stumped.

We are trying to create a bunch of scheduled tasks, and every time it is coming back saying "Keyset does not exist (Exception from HRESULT: 0x80090016)". We have used this installer on several different machines today and had no issues, but we are having issues with one in particular.

Every google search has told us it is an issue with the Protected Storage service. At first we found this service was not running, so we started it and we are still having trouble. Other searches have suggested clearing out a folder in Documents and Settings\All Users\Application Data\Microsoft\Crypto, but given that we are running on Server 2008 that path doesn't exactly exist and I have not managed to find where it might be instead (I've looked in the Users folder under Default, figuring that's the user that replaced "All Users").

I've also seen some results appearing for when you are dealing with IIS on server 2008 and those suggest there is an issue with some certificates not allowing access to the IIS user, but we don't use certificates in our install and the error is happening before we hit IIS.

For those that know code, we use TaskScheduler.dll (which as far as I understand handles all the COM+ stuff for you) to create our tasks, and our installer is built using the WiX toolkit and C#.

Has anyone ever seen an issue like this or seen this error and managed to fix it or get around it?

1
  • for future reference '"Documents and Settings\All Users"' can be replaced with '"%ALLUSERSPROFILE%"' and will get you to the right place regardless of the system -- or so microsoft says. Jun 8, 2016 at 14:48

1 Answer 1

1

We found that we had to delete/rename the S-1-5-18 folder in C:\ProgramData\Microsoft\Crypto\RSA. Once that was done we had no issues.

2
  • Solved my issue on Windows Server 2003 - an old Active Directory domain controller.
    – MikeOnline
    Mar 6, 2019 at 2:24
  • NOTE: After renaming the S-1-5-18 folder and restarting, I could once again view the Properties of a Scheduled Task, but I could not Run a Scheduled Task. I had to manually disable and then re-enable each Scheduled Task. This triggers prompting for credentials for the account which runs the task. Once I did this, I was able to right-click a Scheduled Task and do Run successfully.
    – MikeOnline
    Mar 6, 2019 at 2:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .