Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:06:25+00:00 2026-06-17T05:06:25+00:00

I am using Visual Studio 2012 and I am building a web application in

  • 0

I am using Visual Studio 2012 and I am building a web application in Framework 4.5.
I want to save my connection string in the web config and to read from there.
For some reason i cant read it.
The web config

<connectionStrings>
    <add name="AdminConnection"     connectionString="DataSource=10.0.0.20;InitialCatalog=MailDB;PersistSecurityInfo=True;UserID=s      a;Password=********;"/>

The code

using System.Configuration;
string connectionString = System.Configuration.ConfigurationManager.AppSettings["AdminConnection"];

I am getting error on the configuration manager, and i tried all sort of variations.
Thank for all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:06:26+00:00Added an answer on June 17, 2026 at 5:06 am

    That’s not right. It’s stored in your ConnectionStrings not your AppSettings. See the MSDN for How to: Read Connection Strings for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Visual Studio 2012 and playing around with Windows Phone 7.1 application development.
I'm using Visual Studio 2012 for an MVC web app using code first method
How to implement the OData in ASP .Net Web API using Visual Studio 2012?
I am using Visual Studio 2012 premium and have NuGet package installed. From the
I am using Visual Studio 2012 and I want it to generate a simple
I'm using visual studio 2012 to generate XML from a T4 template. The top
Using Visual Studio 2012, I created a new ASP.NET MVC 4 web project, using
Using visual Studio ultimate 2012. Im currently building a report to be printed in
So I`m using Visual Studio 2012 and have application, which creates notifyIcon and show
Using Visual Studio 2012 RC, from the page, I started an Azure Cloud Service.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.