• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1710
  • Last Modified:

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 ?
  • 2
1 Solution
Mohamed OsamaSenior IT ConsultantCommented:
vu3lmgAuthor Commented:
Can you please explain what you did that sorted out the problem.
I tried 'system.net/mailsettings/smtp' but that did not help.
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.
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.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now