Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How to use the ProtectedData class from a Winodws service

$
0
0

I'm trying to use the ProtectedData class from a Windows Service, using the "CurrentUser" scope. It fails with the error "Key not valid for use in specified state.". I believe this is because the user profile is not loaded. How can I load the user profile for the service account running the service?


Hallis


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>