CryptProtectData failed when calling from ASP.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • poifull

    CryptProtectData failed when calling from ASP.NET

    Hi Everyone,

    When I call the CryptProtectDat a 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"


    Any help will be appreciated.



  • swat

    #2
    Re: CryptProtectDat a failed when calling from ASP.NET

    Hi poifull,

    What is the authentication in IIS set to? Anonymous? Windows
    Integrated? Both? Other?

    Comment

    • poifull

      #3
      Re: CryptProtectDat a failed when calling from ASP.NET

      Hi swat,

      I found out what the problem is from this article:


      It clearly states that calling CryptProtectDat a using user store does not
      work with ASP.NET because a profile is required.

      Thanks for your response.


      "swat" <loka_1999@yaho o.com> wrote in message
      news:1114622902 .834984.325970@ f14g2000cwb.goo glegroups.com.. .[color=blue]
      > Hi poifull,
      >
      > What is the authentication in IIS set to? Anonymous? Windows
      > Integrated? Both? Other?
      >[/color]


      Comment

      Working...