Click here to Skip to main content
16,022,417 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
I am using "File.Encrypt(sPath)" method to encrypt a file. but an Exception "System.IO.IOException was unhandled
Message=Recovery policy configured for this system contains invalid recovery certificate." is accruing
Please Help Me for Solution.


THANX

M USMAN
Posted

1 solution

When you get an error message that you don't understand, the first thing to do is to Google the message:
https://www.google.co.uk/search?q=Recovery+policy+configured+for+this+system+contains+invalid+recovery+certificate&oq=Recovery+policy+configured+for+this+system+contains+invalid+recovery+certificate&sugexp=chrome,mod=14&sourceid=chrome&ie=UTF-8[^]

This makes it look like this is a known problem with workrounds. Without knowing more specifics about your environment, I can't tell which of these are relevant, but the first link - to MSDN - describes your problem exactly, so it's worth looking at:
Error message when client computers encrypt a file in a Windows Server 2003 domain: “Recovery policy configured for this system contains invalid recovery certificate”[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900