Tuesday, July 13, 2010

"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."

Solution :
While running the code with RunWithElevatedprivileges,
1. SPSIte and SPWeb object should be created inside the delegate.
2. SPWeb object should be opened by giving URL explicitly. It should not open by COntextWeb method.

No comments: