首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >缺少SenseNet.ExclusiveLock.MsSql组件

缺少SenseNet.ExclusiveLock.MsSql组件
EN

Stack Overflow用户
提问于 2021-05-20 10:56:39
回答 1查看 36关注 0票数 0

安装了Sensenet的最新版本后,在通过调试启动应用程序时会显示以下错误:

缺少SenseNet.ExclusiveLock.MsSql组件。

描述:在执行当前web请求时发生了未处理的异常。请查看堆栈跟踪以获得有关错误的更多信息,以及它起源于代码的位置。

异常详细信息: System.InvalidOperationException: SenseNet.ExclusiveLock.MsSql组件丢失。

源错误:

代码语言:javascript
复制
Line 13:         protected override void Application_Start(object sender, EventArgs e, HttpApplication application)
Line 14:         {
Line 15:             base.Application_Start(sender, e, application);
Line 16: 
Line 17:             AreaRegistration.RegisterAllAreas();

源文件: c:\users\administrator\source\repos\WebApplication4\WebApplication4\Global.asax.cs行: 15

代码语言:javascript
复制
[InvalidOperationException: SenseNet.ExclusiveLock.MsSql component is missing.]
   SenseNet.ContentRepository.RepositoryVersionInfo.IsComponentAllowed(SnComponentInfo component, Version installedComponentVersion) +217
   SenseNet.ContentRepository.RepositoryVersionInfo.CheckComponentVersions(SnComponentInfo[] components, Boolean release) +237
   SenseNet.Services.SenseNetGlobal.Application_Start(Object sender, EventArgs e, HttpApplication application) in C:\agent-02\_work\2\s\src\Services\SenseNetGlobal.cs:166
   WebApplication4.MvcApplication.Application_Start(Object sender, EventArgs e, HttpApplication application) in c:\users\administrator\source\repos\WebApplication4\WebApplication4\Global.asax.cs:15
   SenseNet.Portal.Global.Application_Start(Object sender, EventArgs e) in C:\agent-02\_work\2\s\src\Services\Global.cs:15

[HttpException (0x80004005): SenseNet.ExclusiveLock.MsSql component is missing.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10107111
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +123
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +181
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +228
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +314

[HttpException (0x80004005): SenseNet.ExclusiveLock.MsSql component is missing.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10087352
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263

我密切遵循安装说明,没有报告构建错误。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-05-20 12:34:19

您有以前版本的sensenet并升级了NuGet包,对吗?这个组合似乎不起作用,因为上面的组件是由新的基础结构自动安装的--这与您的版本不兼容。我在这里看到的唯一解决方案是将包降级为它们的旧版本(至少在去年8月,也许更旧)。自从我们迁移到SenseNet核心之后,.Net已经发生了很大的变化,而且.Net框架库也有一些不兼容之处。请考虑看看新的"sensenet作为一种服务“解决方案,这将使您摆脱升级的麻烦。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67619012

复制
相关文章

相似问题

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