Storing connection string in machine.config

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

  1. #1

    Default Storing connection string in machine.config

    How to store connection strings in machine.config?What are the
    advantages of storing it in the machine.config file.Can u provide me
    with the information regarding accessibility of machine.config
    file,meaning thereby,who can access thisfile and who cannot.An early
    reply would be appreciated.
    Ritu Guest

  2. Similar Questions and Discussions

    1. Bind datagrid when connection string is in web.config?
      You'll have to do it in code, connecting to the datasource and binding to either a datareader or dataset/datatable. "Brian z3"...
    2. String in Web.config to specify AD connection
      I run a .NET based portal product. I am using windows authentication. This mode of authentication and the string specifying the connection to AD...
    3. CryptographicException: Bad Data - when storing public key only in key store on encrypting machine
      I am working on a system in which a web server will contain the Public Key from an RSA Key Pair and it will be stored in a key store (in machine...
    4. Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
      I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now...
    5. encrypting SQL server connection string in web.config
      In my web.config I am storing a connection string to SQL server, along with password and user name. My goal is to somehow encrypt the string so it...
  3. #2

    Default Re: Storing connection string in machine.config

    the idea of a machine config file is to maintain configuration information
    for the server or machine as whole to aid in deployment, scalability,
    performance and efficiency of the applications running on that machine.
    Configuration information specific to a particular application needs to go
    in the web config file. This is where you would put your connection strings.
    You would store things like max memory usage, buffer size settings, output
    buffer cache size in the machine config file because these configurations
    affect alll apps running on the machine and not a specific application per
    say.

    "Ritu" <ritu_68@yahoo.com> wrote in message
    news:da8ce8bc.0307260215.11c0e746@posting.google.c om...
    > How to store connection strings in machine.config?What are the
    > advantages of storing it in the machine.config file.Can u provide me
    > with the information regarding accessibility of machine.config
    > file,meaning thereby,who can access thisfile and who cannot.An early
    > reply would be appreciated.

    Alvin Bruney 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