PC Review


Reply
Thread Tools Rate Thread

Crypto Library Problems in .NetCF 2.0

 
 
lslarry86
Guest
Posts: n/a
 
      15th May 2009
Hi, I am trying to port an existing PC application to a particular
handheld device that runs WinCE 5.0 and .NetCF 2.0 SP1. The
application uses DSA signatures to interface with an existing body of
applications.

The following code lines that work fine on WinXP:
DSACryptoServiceProvider DSA = new
DSACryptoServiceProvider();
DSA.ImportParameters(DSAp);

blow up on the handheld:

System.Security.Cryptography.CryptographicException was unhandled
Message="CryptoAPI cryptographic service provider (CSP) for this
implementation could not be acquired."
StackTrace:
at System.Security.Cryptography.Utils._AcquireCSP()
at System.Security.Cryptography.Utils.AcquireProvHandle()
at System.Security.Cryptography.Utils.get_StaticDssProvHandle()
at
System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters
()
at xxxx.Form1.bVerify_Click()

Google research shows that this commonly occurs on ASP and other web
services where the web applications does not have proper access to the
key store (a file under Documents and Settings...). Following these
posts, I have tried setting UseMachineKeyStore, and even creating the
"Documents and Settings" tree on the handheld, with no success. I
have not found any mention of this bug in connection with Windows CE,
Pocket PC or .NetCF. And there does not seem to be anything like
FileMon or RegMon for the handheld.

Can anyone explain what WinCE is looking for when it tries to
"acquire" a CSP, or how I can work around this exception?

Thanks,
Larry

P.S. My first thread on this subject was in an encryption group
("Please help: DSAParameters in Security",
microsoft.public.platformsdk.security). It now looks like a CE
platform problem, since I have the same problem on my IPAQ (Pocket PC
2003).
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crypto Library Problems in .NetCF 2.0 lslarry86 Microsoft Dot NET Compact Framework 4 12th Jun 2009 10:10 AM
DirectX and Crypto Service problems =?Utf-8?B?amVkaS1qb3No?= Windows XP General 3 9th Sep 2007 07:26 AM
problems with NETCF SP3 =?Utf-8?B?V2VybmVy?= Microsoft Dot NET Compact Framework 5 23rd Sep 2005 10:04 PM
why there isn't freelibrary api in NETCF library? fairycat Microsoft Dot NET Compact Framework 1 11th Apr 2005 04:50 AM
Crypto API problems Morten Microsoft Dot NET Compact Framework 3 30th Dec 2003 06:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 PM.