首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >果园signalr CryptographicException

果园signalr CryptographicException
EN

Stack Overflow用户
提问于 2013-09-25 12:51:25
回答 1查看 211关注 0票数 0

我在2008年windows服务器上的IIS上部署了带有SignalR 1.3.1聊天模块的Orchard异常。它在调试环境中运行良好。

代码语言:javascript
复制
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.

 [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.]
 Microsoft.Owin.Host.SystemWeb.Infrastructure.<>c__DisplayClass1.<GetRethrowWithNoStackLossDelegate>b__0(Exception ex) +42
Microsoft.Owin.Host.SystemWeb.CallContextAsyncResult.End(IAsyncResult result) +88
Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) +42
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

同样的问题的解决方法被描述为这里,但是我想不出如何将它应用于果园

提前感谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-09-25 13:00:01

模块有一个错误

可以通过将CoreModule.cs添加到Load(ContainerBuilder moduleBuilder)方法行中来修复此问题:

代码语言:javascript
复制
moduleBuilder.RegisterType<MachineKeyProtectedData>()
  .As<IProtectedData>();
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19005436

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档