Categories
ASP.NET 2.0 Software Engineering VB.NET

Hide your source code at the browser when hit error

I got a little anxious and embarrassed to see my source code exposed at the browser when I got an error.

Managed to find out that this is due to some setting at the web.config. I just need to set debug to false.

[sourcecode language=”html”]
<configuration>
<system.web>
<compilation debug=”false” />
</system.web>
</configuration>
[/sourcecode]