view source

  • Thread starter Thread starter Billy Cormic
  • Start date Start date
B

Billy Cormic

Hello,
Is there a way to prevent people from viewing my source code on the
web? Is it a setting in the web.config file?

Thanks,
Billy
 
do you mean turning off trace and debug?

Yes they are both setting in web.config.
 
I assume that you found the way to do it web.config.

if not there is the section


<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to insert debugging symbols (.pdb
information)
into the compiled page. Because this creates a larger file that
executes
more slowly, you should set this value to true only when debugging
and to
false at all other times. For more information, refer to the
documentation about
debugging ASP.NET files.
-->
<compilation defaultLanguage="vb" debug="true" />

for debugging.

and


<customErrors mode="RemoteOnly" />


these may be what you were wanting.

HTH,

shane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top