Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
November 04, 2009
In asp.net 2.0
below code is working fine for making a connection in web config
<add name="connectionstring" connectionString="server=.\SQLEXPRESS;database=abc;Integrated security=SSPI;" providerName="System.Data.SqlClient"/>
string connectionstring = Convert.ToString(ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString);
SqlConnection con = null;
but in .net 3.5
I'm getting ConfigurationManager does not exist in current context
how to eliminate????or provide me a structure in 3.5
Posted Date: November 04, 2009 Points: 5
HI saminathan L,
Yes you are right by default its appSettings is not present in Web.config file..But you can write AppSetting the same way as in .NET Framework 1.1
Mark As Answer
" if this post help you.
Posted Date: January 06, 2010 Points: 5
try to Add Reference>System.Configuration.DLL
Please Check my answer if you help....
To post reply
Related Questions Related Questions
how to query Web Configuration settings for sessionState?
can we use multiple script manager?
troubleshooting ssrs configuration in sharepoint 2010
In Outlook i want disable Outlook security manager
customer based configuration settings in .NET
Configuration error in iis7
Can''t configure app to use user database and asp.net configuration database that are on the cloud
What setting must be added in the configuration file to deny a particular user from accessing the se
Latest Forum Questions From The Same Category
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
USSD using AT COMMAND
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend