CryptProtectData failed when calling from ASP.NET
From: poifull (poifull76_at_yahoo.com)
Date: 04/27/05
- Next message: xarky d_best: "Re: Securing an ASP.Net application"
- Previous message: Gabriel Lozano-Morán: "Re: I can't start the Word object"
- Next in thread: swat: "Re: CryptProtectData failed when calling from ASP.NET"
- Reply: swat: "Re: CryptProtectData failed when calling from ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 27 Apr 2005 05:45:09 GMT
Hi Everyone,
When I call the CryptProtectData function from an ASPX page, I got the
following error:
The system cannot find the file specified
I'm getting the error only when ASP Impersonation is used by setting the
<IDENTITY> tag in web.config. Without impersonation the ASPX page works
fine.
The funny thing is if I use RUNAS to open a CMD window with the account
specified in <IDENTITY>, the ASPX page works!
The library is copied from the article "How to: Create a DPAPI Library"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT07.asp
Any help will be appreciated.
- Next message: xarky d_best: "Re: Securing an ASP.Net application"
- Previous message: Gabriel Lozano-Morán: "Re: I can't start the Word object"
- Next in thread: swat: "Re: CryptProtectData failed when calling from ASP.NET"
- Reply: swat: "Re: CryptProtectData failed when calling from ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|