• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1653
  • 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.

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

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