Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

"Object was not found" exception thrown when calling System.Security.Cryptography.CngKey.Create

$
0
0

Hi,

I'm running a WPF service on Windows Server 2008 SP2 with IIS 7.5 and when I try to call the CNGKey.Create API I am getting the following exception thrown:

System.Security.Cryptography.CryptographicException: Object was not found.
   at System.Security.Cryptography.CngKey.Create(CngAlgorithm algorithm, String keyName, CngKeyCreationParameters creationParameters)

This error only occurs when I'm running the actual service through IIS.  When I run through Visual Studio with F5, this code works just fine.  Any ideas on what is causing this issue or how to resolve my server setup? 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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