sensenet - SenseNet.ExclusiveLock.MsSql 组件丢失
问题描述
安装最新版本的Sensenet后,调试启动应用程序时出现以下错误:
SenseNet.ExclusiveLock.MsSql组件丢失。
说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.InvalidOperationException:SenseNet.ExclusiveLock.MsSql 组件丢失。
源错误:
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
[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
我严格按照安装说明进行操作,没有报告任何构建错误。
解决方案
你有以前版本的 sensenet 并且你升级了 NuGet 包,我说的对吗?这种组合似乎不起作用,因为上面的组件是由新的基础设施自动安装的——这与您的版本不兼容。我在这里看到的唯一解决方案是将软件包降级到旧版本(至少去年八月,也许更旧)。自从我们迁移到 .Net Core 后,SenseNet 发生了很大变化,并且与 .Net Framework 库存在一些不兼容问题。请考虑查看新的“sensenet 即服务”解决方案,它将使您免于升级麻烦。
推荐阅读
- html - 如何在悬停时为引导程序中的每张卡片提供不同的高度
- python - TypeError:不支持的操作数类型|:'builtin_function_or_method'和'tuple'
- graphql - Nexus GraphQL Prisma 事件字段
- wordpress - WordPress主题网页顶部的类别标题
- node.js - 带有一些字段的 mongodb 组并全部推回
- c++ - 获取 C++ 中的所有系统时区
- css - 孩子应该填满父母的所有宽度,但如果最小宽度被底切,则换行
- flutter - 异步方法似乎没有在流中等待
- python - 更改日历输出的格式
- mplab - MPLAB X IDE 上传失败