2

Yesterday I found a very useful article on MSDN about Enabling Application-Level Tracing http://msdn.microsoft.com/en-us/library/1y89ed7z(VS.85).aspx

<configuration>
 <system.web>
  <trace enabled="true" requestLimit="40" localOnly="false"/>
 </system.web>
</configuration>

So I would to ask if there are other useful config settings that you recommend learning about?

Robert Levy
  • 28,747
  • 6
  • 62
  • 94
Cheung
  • 15,293
  • 19
  • 63
  • 93
  • 1
    happy reading: http://msdn.microsoft.com/en-us/library/dayb112d.aspx – Kris Ivanov Feb 11 '11 at 02:24
  • Voting to close as not a real question because the entire premise is false. – John Saunders Feb 11 '11 at 02:28
  • 2
    @John I disagree, it may be something that's not worded very well, but it IS a valid question if rephrased as "What are the potential configurable features of the ASP.NET web.config?" – jcolebrand Feb 11 '11 at 02:30
  • @drachenstern: I would still close it, since the answer is trivial. Make the question: how do I learn the potential configurable features, and it will be ok. Then just answer with a few links, and it's all over. – John Saunders Feb 11 '11 at 02:31

3 Answers3

2

See here and the pages it links to (and the pages those pages link to) to explore various things you can put into web.config. http://msdn.microsoft.com/en-us/library/ms228147(v=VS.85).aspx

Robert Levy
  • 28,747
  • 6
  • 62
  • 94
1

There are technically no undocumented features of the web.config that you should use, and that trace feature is documented.

However, this page may help you: http://msdn.microsoft.com/en-us/library/1fk1t1t0(v=VS.85).aspx or this one http://msdn.microsoft.com/en-us/library/dayb112d(v=VS.85).aspx

As well as checking the .config files in C:\Windows\System32\inetsrv\config and C:\Windows\Microsoft.NET\Framework\v2.0.50727

All the features that you primarily will use are configured in those files or listed as a topic or linked topic on that Microsoft page I linked you earlier.

jcolebrand
  • 15,889
  • 12
  • 75
  • 121
0

For one, there is the web.debug.config and web.release.config.
And there is also a practice of encrypting connectionstrings in web.config

Community
  • 1
  • 1
naveen
  • 53,448
  • 46
  • 161
  • 251