Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here is the error message I got while debugging my project "Unrecognized configuration section connectionString".

Here is my web config code :

<connectionstring>
<add name="DBConnect" connectionstring="Datasource=DELL-PC;Initial Catalog=RealEstate;Integrated Security=True">
<connectionstring>

Need help to fix this issue.
Posted

It means that you con't have a connectionstring property in your web.config file.
How to do this[^].
 
Share this answer
 
Comments
Kishor Deshpande 6-Feb-13 9:24am    
My 5
fjdiewornncalwe 11-Feb-13 10:34am    
Thanks, Kishor.
 
Share this answer
 
v3
no I write the connection string in the web.config.. still I am getting the error.
 
Share this answer
 
Comments
Kishor Deshpande 6-Feb-13 23:49pm    
Make sure your web.config file is correct.
Could you please share your error message, and some code how you are fetching the connectionstring?
Unable to view webconfig code..I'll help you.
fjdiewornncalwe 11-Feb-13 10:35am    
Apparently, not correctly. This section is case sensitive, so you need to make sure that the "ConnectionString" tag in your web.config matches the "connectionString" that your code is trying to use exactly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900