Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Last active October 8, 2015 00:44
Show Gist options
  • Save phillipsj/ffa9fbdafad35f46aaf8 to your computer and use it in GitHub Desktop.
Save phillipsj/ffa9fbdafad35f46aaf8 to your computer and use it in GitHub Desktop.
StackTrace of Data Protection Error
[CryptographicException: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.]
System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope) +514
System.Security.Cryptography.DpapiDataProtector.ProviderProtect(Byte[] userData) +75
Microsoft.Owin.Security.DataHandler.SecureDataFormat`1.Protect(TData data) +93
Microsoft.Owin.Security.OpenIdConnect.<ApplyResponseChallengeAsync>d__c.MoveNext() +1342
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
Microsoft.Owin.Security.Infrastructure.<ApplyResponseCoreAsync>d__b.MoveNext() +531
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
Microsoft.Owin.Security.Infrastructure.<ApplyResponseAsync>d__8.MoveNext() +631
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
Microsoft.Owin.Security.Infrastructure.<TeardownAsync>d__5.MoveNext() +318
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) +13877209
Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +1371
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +28
Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +1107
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +28
Orchard.Mvc.Routes.<ProcessRequestAsync>d__5.MoveNext() in C:\Users\jphillips\code\ifb-blue-orchard\src\Orchard\Mvc\Routes\ShellRoute.cs:181
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +69
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +611
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment