4

In the process of tracking down an elusive Sharepoint custom workflow problem, I cranked up the verbosity level on our sandbox MOSS server and noticed the following error message start popping up:

SPSite should not be used with mixed impersonation state. If you do want to cache an SPSite created within RunWithElevatedPrivileges, call SPSite.BypassImpersonationStateCheck

While this is most likely unrelated to our problem, I was curious about this SPSite.BypassImpersonationStateCheck method that doesn't seem to actually exist. When we include this call in our code it won't compile. MSDN doesn't have any information. A quick Google search doesn't turn up any concrete answers. What is SPSite.BypassImpersonationStateCheck?

Southerneer
  • 1,962
  • 1
  • 13
  • 21
  • I'm seeing the same issue in my logs. I cranked up the verbosity due to workflow failing in a load-balanced farm environment. – Dylan Berry Nov 18 '10 at 21:26
  • seems like error from previous version of SharePoint. Method maybe removed, but log message still exists – gdbdable Nov 15 '12 at 10:13
  • I've just had the same appear in Office 365 - from an event receiver in a Sandbox solution I'd written. Pretty weird; you can't impersonate in Sandbox... – Andy Burns Dec 17 '13 at 11:46

0 Answers0