How to encrypt section in web.config

I am developing a web application using VS2008,  ASP.NET,  framework 3.5
The application uses section of web.config file to store SMTP information.
While running
aspnet_regiis.exe -pe "" -app /MyApp -prov "DataProtectionConfigurationProvider"
I get "The configuration section '' was not found" error.
How do I encrypt this section ?
Who is Participating?
Mohamed OsamaConnect With a Mentor Senior IT ConsultantCommented:
vu3lmgAuthor Commented:
Can you please explain what you did that sorted out the problem.
I tried '' but that did not help.
vu3lmgAuthor Commented:
OK my mistake,  
I tried '' and it worked.
The "S" in mailSettings was not proper (upper case).
I will close the question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.