Orchard and Azure Website Signalr-Collection of common programming errors
I’m working with Signalr’s module in Orchard and I want to deploy the website in Azure, but this does not work. The website gives this error when Signalr’s connection is deployed in Azure.
Server Error in ‘/’ Application.
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.
Description: An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and where
it originated in the code.`
Exception Details: System.Security.Cryptography.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.
Source Error:
An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:
[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) +379
Microsoft.AspNet.SignalR.Infrastructure.DefaultProtectedData.Protect(String data,
String purpose) +125
Microsoft.AspNet.SignalR.PersistentConnection.ProcessNegotiationRequest(HostContext
context) +440
Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(HostContext context) +411
Microsoft.AspNet.SignalR.Hubs.HubDispatcher.ProcessRequest(HostContext context) +491
Microsoft.AspNet.SignalR.Owin.CallHandler.Invoke(IDictionary2 environment) +1312
Microsoft.AspNet.SignalR.Owin.Handlers.HubDispatcherHandler.Invoke(IDictionary2
environment) +273
Proligence.SignalR.Core.Middleware.WorkLifetimeScopeHandler.Invoke(IDictionary`2 env)
+235
Microsoft.Owin.Host.SystemWeb.OwinCallContext.Execute() +121
Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.BeginProcessRequest(HttpContextBase
httpContext, AsyncCallback callback, Object extraData) +475`
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
Microsoft.Owin.Host.SystemWeb.CallContextAsyncResult.End(IAsyncResult result) +209
Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.EndProcessRequest(IAsyncResult result)
+35
Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in c:\Visual
Studio 2012\Projects\Kiwi\src\Orchard\Mvc\Routes\ShellRoute.cs:162
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+9629296
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +155
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.18033
Thanks!