Re: How to recover source code from a dll that's compiled in debug release

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi CW,

My understanding of how asp.net displays the source is this:
1. asp.net catches an exception and gets a stack trace
2. the stack trace includes source file names and line numbers
3. asp.net opens the source file pointed to by the stack trace

I've noticed before that if I move the source or edit it, but don't
recompile asp.net will display the edited source.

I think the best you're going to be able to do is use Reflector to get
the code.

-David


C.W. wrote:
Hi Peter

I wonder how then asp.net is able to return error messages with exact line
number and the code on that line whenever it encounters an error. It must
somehow stores the data somewhere. Anyway to get to that? I know it doesn't
store comment, but it does seem that it stores source code, nevertheles.

Thanks

CW

.