Re: best technique for connection strings in web.config in ASP.NET



Hey Brian,

You should look at:


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000005.asp

If this is your server I would suggest looking into how to use RSA or DPAPI
to encrypt the info.


--
kris@xxxxxxxxx<Remove This Before Emailing>

Network & Software Integration
www.n-sv.com

"Helping put the pieces of your IT puzzle together"


"Brian Henry" wrote:

> that is exactly what i converted my existing ones to
>
> "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:%235U37K64FHA.2676@xxxxxxxxxxxxxxxxxxxxxxx
> > Considering the more strict schema of configuration files in the .Net 2.0
> > framwork, you may find the CollectionStrings element to be your best bet.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > A watched clock never boils.
> >
> > "Brian Henry" <nospam@xxxxxxxxxx> wrote in message
> > news:ODrMP554FHA.3192@xxxxxxxxxxxxxxxxxxxxxxx
> >> thanks everyone! I knew something changed in 2.0 but wasnt sure, the info
> >> given helps a lot
> >>
> >> "Scott Allen" <scott@xxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:p3htm1psfn2bk7phafk74hsjqi06find7a@xxxxxxxxxx
> >>>I have a related article that talks about some of the new config
> >>> features in 2.0. http://odetocode.com/Articles/418.aspx
> >>>
> >>> As others pointed out, the biggest difference is a dedicated
> >>> <connectionStrings> section and the WebConfigurationManager class.
> >>>
> >>> --
> >>> Scott
> >>> http://www.OdeToCode.com/blogs/scott/
> >>>
> >>> On Sun, 6 Nov 2005 16:31:54 -0500, "Brian Henry" <nospam@xxxxxxxxxx>
> >>> wrote:
> >>>
> >>>>I've never stored a program specific connection string in the web.config
> >>>>file before, is there any information on how to store it there and
> >>>>access it
> >>>>from the app and what would be the best way to handle a string like this
> >>>>in
> >>>>asp.net 2.0? thanks!
> >>>>
> >>>
> >>
> >>
> >
> >
>
>
>
.



Relevant Pages

  • Re: Asp.net 2.0 deployment with encryption
    ... I guesss I will create a rsa key on the production server. ... Export the public xml/key to a common location on some server. ... As for the ASP.NET 2.0 configuration section protection, ... encryption which use a single shared session key to encrypt and decrypte ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problems with public key decryption with RSA
    ... Also the package may arrive at the client via an email or CD so ... > 3) Encrypt data with symmetric key. ... > Note we use the HMAC-SHA1 to sign as we don't have a RSA private key. ... > xml string in the request using RSA public key of server. ...
    (microsoft.public.dotnet.security)
  • DPAPI implementation problems
    ... I have been referred from the 2000 server forum to here ... this uses DPAPI it calls via a Visual Basic ... Windows XP problem ... Encrypt / Decrypt is called from my Visual Basic 6 code. ...
    (microsoft.public.platformsdk.security)
  • Encryption bugs with DPAPI
    ... I have been referred from the 2000 server forum to here ... this uses DPAPI it calls via a Visual Basic ... Windows XP problem ... Encrypt / Decrypt is called from my Visual Basic 6 code. ...
    (microsoft.public.platformsdk.security)
  • Re: Problems with public key decryption with RSA
    ... Also the package may arrive at the client via an email or CD so ... > 3) Encrypt data with symmetric key. ... > Note we use the HMAC-SHA1 to sign as we don't have a RSA private key. ... > xml string in the request using RSA public key of server. ...
    (microsoft.public.dotnet.framework)