Ask a Question related to ASP.NET Security, Design and Development.
-
Mark Petruszak #1
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
-
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... -
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... -
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... -
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... -
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... -
John Paul. A #2
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
-
Mark Petruszak #3
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
-
John Paul. A #4
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



Reply With Quote

