Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default DPAPI

    Hi everyone. I'm creating an app that stores DB connection strings in the
    web config file. I'm using the MSDN resources at
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod21.asp[/url] 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




    Mark Petruszak Guest

  2. Similar Questions and Discussions

    1. DpAPI Encrypted Aes Key Problems
      Hi. I used the Microsoft Dpapi to encrypt a symmetric AES key generated from the code below INTO TEXT. The text dpapi encrypted Aes key is...
    2. Use Dpapi with Shared Asp.Net Web Host?
      Hi. I'd like to use an encrypted database connection string. I'd also like use an encrypted set of customer tables with a symmetric algorithm...
    3. DPAPI Enterprise Services Example
      I am trying to work through the sample from msdn, "How To Use DPAPI (User Store) from ASP.NET with Enterprise Services". I thought I had everything...
    4. error DPAPI
      hello iam trying to Use DPAPI (User Store) from ASP.NET with Enterprise Services and have also created DPAPI Library" when i create a strong name...
    5. DPAPI and connection string
      I am planning on using DPAPI for an asp.net application. I will configure the app to run under an account I create. My understaning of DPAPI is...
  3. #2

    Default RE: DPAPI

    Hi Mark,
    You check the config file settings. If everything finds right there, please
    check the security settings for the dll.
    Rgds,
    John Paul. A

    "Mark Petruszak" wrote:
    > Hi everyone. I'm creating an app that stores DB connection strings in the
    > web config file. I'm using the MSDN resources at
    > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod21.asp[/url] 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
    >
    >
    >
    >
    John Paul. A Guest

  4. #3

    Default RE: DPAPI

    The only change that I made to the web config file was the one that the
    article suggested that I make. That is, add the appSettings section.

    With regard to the security settings for the dll, what should they be?
    Also, please specify what dll that you are concerned about. This application
    was created and then built in VS 2003 just like all my other apps. What now
    would make VS alter an app's security settings? Does Windows XP SP2 have a
    hand in this?

    Thank you for your help in this matter.

    -Mark

    "John Paul. A" wrote:
    > Hi Mark,
    > You check the config file settings. If everything finds right there, please
    > check the security settings for the dll.
    > Rgds,
    > John Paul. A
    >
    > "Mark Petruszak" wrote:
    >
    > > Hi everyone. I'm creating an app that stores DB connection strings in the
    > > web config file. I'm using the MSDN resources at
    > > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod21.asp[/url] 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
    > >
    > >
    > >
    > >
    Mark Petruszak Guest

  5. #4

    Default RE: DPAPI

    Hi Mark,
    Could you please check whether you have these requirements with the service
    packs.

    <!--
    This module applies to the following products and technologies:

    Microsoft® Windows® XP or Windows 2000 Server (with Service Pack 3) and
    later operating systems
    Microsoft Data Protection API
    Microsoft .NET Framework version 1.0 (with Service Pack 2) and later versions
    Microsoft Visual C#® .NET development tool
    -->

    Rgds,
    John Paul. A

    "Mark Petruszak" wrote:
    > The only change that I made to the web config file was the one that the
    > article suggested that I make. That is, add the appSettings section.
    >
    > With regard to the security settings for the dll, what should they be?
    > Also, please specify what dll that you are concerned about. This application
    > was created and then built in VS 2003 just like all my other apps. What now
    > would make VS alter an app's security settings? Does Windows XP SP2 have a
    > hand in this?
    >
    > Thank you for your help in this matter.
    >
    > -Mark
    >
    > "John Paul. A" wrote:
    >
    > > Hi Mark,
    > > You check the config file settings. If everything finds right there, please
    > > check the security settings for the dll.
    > > Rgds,
    > > John Paul. A
    > >
    > > "Mark Petruszak" wrote:
    > >
    > > > Hi everyone. I'm creating an app that stores DB connection strings in the
    > > > web config file. I'm using the MSDN resources at
    > > > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod21.asp[/url] 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
    > > >
    > > >
    > > >
    > > >
    John Paul. A Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139