Hi Brian,
Actually, they control two different targets. The VS setting controls the
way you build your code behind stuff (your asmx file in a VS generated
service is rather empty; it basically just refers to a compiled class in the
code behind file). So if you do a debug build in VS, you get a compiled code
behind class with symbols and debug info.
The debug attribute controls the dynamic compilation that aspnet performs.
So if you do a release build in VS and set the debug attribute to true, what
you get is a dynamically generated class (generated from your asmx file) with
debug info which refers to (actually, inherits from) a code behind class
without debug info.
HTH,
-- Henkk
"Brian" wrote:
Can sombody please outline the diference between setting complication mode
from the toolbar in VS.Net (i.e. debug/release) and setting the debug
attribute (i.e. true/false) on the compilation element in web.config.
What ts the difference?
Which one wins?
Which one should I use and When?
Thank You,
Brian