Best Practices Question #3

Discussion in 'ASP .Net' started by Support, Nov 23, 2005.

  1. Support

    Support Guest

    Hello:
    I am deploying a new asp.net web site on IIS.
    QUESTION #3:
    I want to encrypt my database connection strings... in the past I have
    encrypted them in web.config file but that is not a great solution because
    if I have many applications and I have to switch to a database different
    server for some reason, I now need to change all the encrypted string.
    I am looking for a more centralized solution - that does not require using
    the registry (for io performance reasons)
    Is there, can there be a central web.config to the web site that becomes
    accessible by all the other aspx applications..
    Thanks
    Terry
    Support, Nov 23, 2005
    #1
    1. Advertising

  2. You can place the connection string in machine.config .

    "Support" wrote:

    > Hello:
    > I am deploying a new asp.net web site on IIS.
    > QUESTION #3:
    > I want to encrypt my database connection strings... in the past I have
    > encrypted them in web.config file but that is not a great solution because
    > if I have many applications and I have to switch to a database different
    > server for some reason, I now need to change all the encrypted string.
    > I am looking for a more centralized solution - that does not require using
    > the registry (for io performance reasons)
    > Is there, can there be a central web.config to the web site that becomes
    > accessible by all the other aspx applications..
    > Thanks
    > Terry
    >
    >
    >
    =?Utf-8?B?U2FudGhpIE1hYWRoYXZlbg==?=, Nov 23, 2005
    #2
    1. Advertising

  3. Support

    tdavisjr Guest

    ..NET 2.0 comes now with a global web.config wich can be found in the
    same place where your machine.config lives. You can place global
    settings in that file. It should do the trick.
    tdavisjr, Nov 23, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. karim
    Replies:
    0
    Views:
    444
    karim
    Jul 13, 2003
  2. Karl Hungus

    question about best practices

    Karl Hungus, Apr 23, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    317
    =?Utf-8?B?UmFzaWthIFdpamF5YXJhdG5l?=
    Apr 27, 2004
  3. Derek Martin

    Best Practices Question...

    Derek Martin, Jan 26, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    371
    Kevin Spencer
    Jan 26, 2005
  4. John Dalberg
    Replies:
    3
    Views:
    560
    samuelhon
    Nov 16, 2006
  5. Chicken McNuggets

    Best book on C gotchas and best practices?

    Chicken McNuggets, Jul 31, 2013, in forum: C Programming
    Replies:
    9
    Views:
    256
    Fred J. Tydeman
    Aug 5, 2013
Loading...

Share This Page