I have a strange problem: I use SPContext.Current.Web on the .aspx page, but in the end I get "Attempting to use an SPWeb object that has been closed or deleted and is no longer valid." error message.
From what I see, SPContext.Current.Web is Disposed by someone , but I have no idea where . I'm just curious: with Visual Studio 2005 Debugger, I can somehow see where / who posted the object? Since I do not create or use source code, setting breakpoints is a problem.
What would be a good approach to find out who disposes of this object, where, without accidentally commenting out lines?
(Note: The issue has been resolved, but the issue itself also applies outside of Sharepoint)
source
share