You probably want to make this user name and password moved to a more secure location or point to your database/authentication store for security and maintainability perspective.
3. Now the code part is done. Move to config file. Enable custom errors so you know details about the errors happening.
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
4. Add a new bindings attribute in the config called SafeServiceConf which will specify the TransportWithMessageCredential type of security. You can add this right before </system.serviceModel>
endpoint security encryption endpoint security by bitdefender cannot be successfully installed