using CryptUnprotectData api from c#



Hi,

i'm trying to use function from crypt32.dll in dot net, and get exception:

An unhandled exception of type 'System.TypeLoadException' occurred in
WindowsApplication1.exe

Additional information: Could not load type WinApis from assembly
WindowsApplication1, Version=1.0.2006.19524, Culture=neutral,
PublicKeyToken=null because the method CryptUnprotectData has no RVA.


can anyone shade some light on the subject?

TIA, z.




.



Relevant Pages

  • using CryptUnprotectData api from c#
    ... i'm trying to use function from crypt32.dll in dot net, ... An unhandled exception of type 'System.TypeLoadException' occurred in ... Could not load type WinApis from assembly ... TIA, z. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: using CryptUnprotectData api from c#
    ... Dominick Baier - DevelopMentor ... Could not load type WinApis from assembly ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Unable to connect to MSSQL...return error
    ... My web service cannot connect to My MsSql DB. ... An unhandled exception of type 'System.Web.Services.Protocols.SoapException' ... Connection code ... Prev by Date: ...
    (microsoft.public.dotnet.framework.webservices)
  • threading problem
    ... An unhandled exception of type 'System.InvalidOperationException' occurred ... TreeView is declared on form not on current thread. ... THX ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • StackOverflowException
    ... I get this error: "An unhandled exception of type ... isolated it to a single subroutine which involves several loops(they are ... help file is not very clear ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)