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]