By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,441 Members | 1,831 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,441 IT Pros & Developers. It's quick & easy.

view source

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
do you mean turning off trace and debug?

Yes they are both setting in web.config.
"Billy Cormic" <bi**********@hotmail.com> wrote in message
news:dd*************************@posting.google.co m...
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

Nov 21 '05 #2

P: n/a
Yeah. Thanks.

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message news:<uo**************@TK2MSFTNGP11.phx.gbl>...
do you mean turning off trace and debug?

Yes they are both setting in web.config.
"Billy Cormic" <bi**********@hotmail.com> wrote in message
news:dd*************************@posting.google.co m...
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

Nov 21 '05 #3

P: n/a
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
"Billy Cormic" <bi**********@hotmail.com> wrote in message
news:dd**************************@posting.google.c om...
Yeah. Thanks.

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message

news:<uo**************@TK2MSFTNGP11.phx.gbl>...
do you mean turning off trace and debug?

Yes they are both setting in web.config.
"Billy Cormic" <bi**********@hotmail.com> wrote in message
news:dd*************************@posting.google.co m...
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

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.