DPAPI

M

Mark Petruszak

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
 
J

John Paul. A

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
 
M

Mark Petruszak

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
 
J

John Paul. A

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top