How to encrypt system.net/mailsettings section in web.config

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