PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
CertOpenStore Gives Error#5 "Access is denied" for Smartphone application... It's urgent
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
CertOpenStore Gives Error#5 "Access is denied" for Smartphone application... It's urgent
![]() |
CertOpenStore Gives Error#5 "Access is denied" for Smartphone application... It's urgent |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi All,
I am trying to open store in my Smartphone application as follows: systemStore = CertOpenStore( CERT_STORE_PROV_SYSTEM, 0, NULL, CERT_STORE_ENUM_ARCHIVED_FLAG /*LOWORD*/ | CERT_SYSTEM_STORE_LOCAL_MACHINE /*HIWORD*/, _T("ROOT")); DWORD dwErr = GetLastError(); Here it gives me Error #5 which is "Access is denied.". My application tries to connect to a remote server which i had given certificate. My Pocket PC client works well with systemStore = CertOpenSystemStoreW(NULL, _T("ROOT")); Here i get a valid handle to the store when i connect to the same server. Rest of the things are same in both the cases there is only difference of API used to open the store. Can anyone tell me what can be the possible reason behind it. Thanks in Advance, Ansh |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Anyways friends, i got the solution. I just reinstallled emulator then
it works fine for me. I dont know whats the reason behind it. But if somebody is facing this prob then reinstalling the emulator should work for him. Thnx , Ansh |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

