title: Encrypt Web.config Using aspnet_regiis.exe
body: <p>We are developing our first website by asp.net mvc. You know every asp.net project has "web.config" file that Contains sensitive configuration parametersو like connectionStrings (username and password for connecting to database).
  Now, for improving security of our web site and avoid hacking, we want to encode or encrypt the content of web.config file. We followed according to 
  <a href="https://www.codeproject.com/Tips/877258/How-to-Encrypt-Web-config-Using-aspnet-regiis-exe" rel="nofollow noreferrer">https://www.codeproject.com/Tips/877258/How-to-Encrypt-Web-config-Using-aspnet-regiis-exe</a>. 
  At localhost, web.config is encoded as well and loading web site is ok. but when we uploaded our site on the server, The site was loaded with this error:
  "An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine."</p>
  
  <p>What is the problem? May you help me?
  Best Regards</p>