<p>I've only recently started working with asp.net and c#. Is there a standard practice set of web.config settings for a live final website? There seem to be a ton of options available and I'm looking to streamline performance, close possible security holes and other unnecessary options. </p>

[{'answer_id': 55595, 'author': 'Mark Cidade', 'author_id': 1659, 'author_profile': 'https://Stackoverflow.com/users/1659', 'pm_score': 1, 'selected': False, 'text': "<p>An empty web.config (or at least an absent <em><code>&lt;</code>system.web></em> element) would mean that all of the framework's recommended defaults would take effect. You would then just need to be concerned with the host (e.g., IIS) set-up.</p>\n"}, {'answer_id': 55599, 'author': 'solrevdev', 'author_id': 2041, 'author_profile': 'https://Stackoverflow.com/users/2041', 'pm_score': 3, 'selected': True, 'text': '<p><a href="http://weblogs.asp.net/scottgu/archive/2007/09/21/tip-trick-automating-dev-qa-staging-and-production-web-config-settings-with-vs-2005.aspx" rel="nofollow noreferrer">Tip/Trick: Automating Dev, QA, Staging, and Production Web.Config Settings with VS 2005</a> </p>\n'}, {'answer_id': 55605, 'author': 'Rob Allen', 'author_id': 149, 'author_profile': 'https://Stackoverflow.com/users/149', 'pm_score': 1, 'selected': False, 'text': '<p>Start with a clean web.config and only add the sections you need. </p>\n\n<p>For security, all you really can do is make sure you flag \n    &lt;compelation debug="false"&gt;\n for your production box and set custom errors to true.</p>\n'}, {'answer_id': 55659, 'author': 'Gulzar Nazim', 'author_id': 4337, 'author_profile': 'https://Stackoverflow.com/users/4337', 'pm_score': 1, 'selected': False, 'text': '<p>Secure all folders containing any sensitive info with the location tag. Encrypt any connection strings with <a href="http://msdn.microsoft.com/en-us/library/ms998280.aspx" rel="nofollow noreferrer">DPAPI</a>.</p>\n'}]
['https://Stackoverflow.com/questions/55572', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5433/']