DPAPI

From: Mark Petruszak (mark[No_Spam}petro66_at_yahoo.com)
Date: 11/28/04


Date: Sun, 28 Nov 2004 11:59:02 -0800

Hi everyone. I'm creating an app that stores DB connection strings in the
web config file. I'm using the MSDN resources at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod21.asp and the related articles for help.

However, when using the code in the above article, I get the following
exception:
"Exception decrypting. Unable to load DLL (kernal32.dll)." When I click on
the button "Decrypt string from config file", the application begins to
postback but then quits after the Page_Load event.

If someone could point me in the right direction, it would be very much
appreciated.

-Mark



Relevant Pages

  • Re: connection strings in config file
    ... Normally you only want to store them in a config file because you ... an app normally has only a few connection strings at most (1 ... I have a question about storing the connection strings to the database ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Design question
    ... FWIW, we do this via web services, so that the connection string isn't lying ... > If an app consumes many such dlls, the app config file would contain many ... > connection strings via web services and Sql Server. ...
    (microsoft.public.dotnet.general)
  • Re: connection strings in config file
    ... in the class or have the string in a config file. ... It's definitely a better idea to store your connection strings in the ... If you store them in a database, ... I have a question about storing the connection strings to the database ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Connection String problem
    ... You should put that in the config file, ... an xml file, nothing fancy, except it is the standard way of putting config ... connection strings inclusive) in that. ... > I don't want to hardcode the database connectin string in my application. ...
    (microsoft.public.dotnet.framework.adonet)