Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I get this error: Unrecognized configuration section appsettings
Please anybody help me:
XML
Unrecognized configuration section appsettings.
Source Error:
Line 25:     </configSections>
Line 26:
Line 27:   <appsettings>
Line 28:     <add key="SMTP" value="smtp.gmail.com"/>
Line 29:     <add key="FROMEMAIL" value="someemail@gmail.com"/>
Posted
Updated 21-Apr-11 20:16pm
v2

Unrecognized configuration section appsettings

Looks like you have put the appsettings section out of the configuration. Put it in the configSections.
VS intellisense will help you in identifying if it is allowed there or not. It's just a misplaced config error. Place AppSettings at correct location in the config file.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 2:23am    
Intellisense is a good point, my 5, there is a full reference (see).
--SA
Sandeep Mewara 22-Apr-11 2:27am    
Thanks and saw your answer too.
The element's name is different: "appSettings", see http://msdn.microsoft.com/en-us/library/ms228154.aspx[^]. The whole syntax is described here: http://msdn.microsoft.com/en-us/library/zeshe0eb.aspx[^]. How this could be a problem?

—SA
 
Share this answer
 
v2
Comments
Sandeep Mewara 22-Apr-11 2:27am    
5ed! A full reference is there!
Sergey Alexandrovich Kryukov 22-Apr-11 2:28am    
Thank you, Sandeep.
--SA
Monjurul Habib 22-Apr-11 2:57am    
perfect links. my 5++.
Sergey Alexandrovich Kryukov 22-Apr-11 3:18am    
Thank you, Monjurul.
--SA
[no name] 22-Apr-11 2:57am    
Nice Link --SA
my 5++
You need to give correct casing. It is appSettings.
 
Share this answer
 

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