Hello sense / net community,
我正在尝试安装sense / net社区版。
我一步一步地按照this guide中的步骤进行了
但是当我运行批处理时结束时出现以下错误: ExportSenseNet.bat
2017-02-01 19:45:27.5636 Installing content types...
2017-02-01 19:46:27.3759 ========================================
2017-02-01 19:46:27.3890 Import ends with error:
2017-02-01 19:46:27.4050 ========== Exception:
2017-02-01 19:46:27.4288 SchemaEditorCommandException: Error during schema transaction rollback.
2017-02-01 19:46:27.4839 at SenseNet.ContentRepository.Storage.Schema.SchemaEditor.RegisterSchema(SchemaEditor origSchema, SchemaEditor newSchema, SchemaWriter schemaWriter) in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Storage\Schema\SchemaEditor.cs:line 74
at SenseNet.ContentRepository.Storage.Schema.SchemaEditor.Register() in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Storage\Schema\SchemaEditor.cs:line 25
at SenseNet.ContentRepository.Schema.ContentTypeInstaller.ExecuteBatch() in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\ContentRepository\Schema\ContentTypeInstaller.cs:line 110
at SenseNet.Tools.ContentImporter.ImporterClass.InstallContentTypeDefinitionsAndAspects(String ctdPath, String aspectsPath) in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Tools\Import\ImporterClass.cs:line 388
at SenseNet.Tools.ContentImporter.ImporterClass.Run(String schemaPath, String asmPath, String fsPath, String repositoryPath, Boolean validate, Boolean resetSecurity) in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Tools\Import\ImporterClass.cs:line 130
at SenseNet.Tools.ContentImporter.Importer.Main(String[] args) in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Tools\Import\Importer.cs:line 115
2017-02-01 19:46:27.5419 ---- Inner Exception:
2017-02-01 19:46:27.5579 InvalidOperationException: This SqlTransaction has completed; it is no longer usable.
2017-02-01 19:46:27.6070 at System.Data.SqlClient.SqlTransaction.ZombieCheck()
at System.Data.SqlClient.SqlTransaction.Rollback()
at SenseNet.ContentRepository.Storage.Data.SqlClient.Transaction.Rollback() in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Storage\Data\SqlClient\Transaction.cs:line 240
at SenseNet.ContentRepository.Storage.TransactionScope.Rollback() in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Storage\TransactionScope.cs:line 195
at SenseNet.ContentRepository.Storage.Schema.SchemaEditor.RegisterSchema(SchemaEditor origSchema, SchemaEditor newSchema, SchemaWriter schemaWriter) in c:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\Storage\Schema\SchemaEditor.cs:line 64
2017-02-01 19:46:27.6255 =====================
2017-02-01 19:46:27.6425 ========================================
2017-02-01 19:46:27.6595 Import is finished with 1 errors.
2017-02-01 19:46:27.6775 Read log file: C:\Users\MyUser\Desktop\CMS\sn-community-src-6.5.4.9243\Source\SenseNet\WebSite\Tools\importlog_20170201-194504.txt
答案 0 :(得分:2)
我认为缺少SQL别名。
默认连接字符串使用Alias(MySenseNetContentRepositoryDatasource)连接到服务器。这是一个默认的连接字符串:
<add name="SnCrMsSql" connectionString="Data Source=MySenseNetContentRepositoryDatasource;Initial Catalog=SenseNetContentRepository;Integrated Security=True;" providerName="System.Data.SqlClient" />
默认情况下,别名是MySenseNetContentRepositoryDatasource。您需要在SQL Server配置管理器中设置此别名。 请查看此文档:http://wiki.sensenet.com/How_to_install_Sense/Net_from_source_package_(IIS_7.5_and_IIS_7.0) (第5点[设置数据库连接]与您相关)。
您需要创建两个别名,一个用于基于32位的应用程序,另一个用于基于64位的应用程序。
如果您的计算机上有更多SQL实例,则应选择正确的实例。例如,我有一个默认的SQL2012实例,我可以在本地机器上使用..而且我有一个SQL版本2016的其他实例,在这种情况下这个SQL服务器正在监听。\ SQL2016 url。如果我想使用SQL2016,我需要输入。\ SQL2016到别名的Server属性。
当您创建了两个别名时,可以在SQL Management工作室中尝试它。我认为这是一种更简单的方法来判断它是否有效。
您尝试运行的流程是什么?你写了这个:
但是当我运行批处理时结束时出现以下错误:ExportSenseNet.bat
但是我觉得这是一个导入
2017-02-01 19:45:27.5636安装内容类型... 2017-02-01 19:46:27.3759 ======================================== 2017-02-01 19:46:27.3890导入以错误结束:2017-02-01 19:46:27.4050
==========异常:2017-02-01 19:46:27.4288 SchemaEditorCommandException:模式事务期间出错 回滚。 2017-02-01 19:46:27.4839 at SenseNet.ContentRepository.Storage.Schema.SchemaEditor.RegisterSchema(SchemaEditor origSchema,SchemaEditor newSchema,SchemaWriter schemaWriter)in C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \存储\架构\ SchemaEditor.cs:行 74点 SenseNet.ContentRepository.Storage.Schema.SchemaEditor.Register()in C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \存储\架构\ SchemaEditor.cs:行 25点 SenseNet.ContentRepository.Schema.ContentTypeInstaller.ExecuteBatch() 在 C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \ ContentRepository \架构\ ContentTypeInstaller.cs:行 110点 SenseNet.Tools.ContentImporter.ImporterClass.InstallContentTypeDefinitionsAndAspects(字符串 ctdPath,String aspectsPath)in C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \工具\导入\ ImporterClass.cs:行 388 at SenseNet.Tools.ContentImporter.ImporterClass.Run(String schemaPath,String asmPath,String fsPath,String repositoryPath, 布尔验证,布尔值resetSecurity)in C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \工具\导入\ ImporterClass.cs:行 130在SenseNet.Tools.ContentImporter.Importer.Main(String [] args)in C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \工具\导入\ Importer.cs:行 115 2017-02-01 19:46:27.5419 ----内部异常:2017-02-01 19:46:27.5579 InvalidOperationException:此SqlTransaction具有 完成;它不再可用。 2017-02-01 19:46:27.6070 at System.Data.SqlClient.SqlTransaction.ZombieCheck()at System.Data.SqlClient.SqlTransaction.Rollback()at SenseNet.ContentRepository.Storage.Data.SqlClient.Transaction.Rollback() 在 c:\ Users \ MyUser \ Desktop \ CMS \ sn-community-src-6.5.4.9243 \ Source \ SenseNet \ Storage \ Data \ SqlClient \ Transaction.cs:SenseNet.ContentRepository.Storage.TransactionScope.Rollback()中的第240行 在 C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \存储\ TransactionScope.cs:行 195点 SenseNet.ContentRepository.Storage.Schema.SchemaEditor.RegisterSchema(SchemaEditor origSchema,SchemaEditor newSchema,SchemaWriter schemaWriter)in C:\用户\ MYUSER \桌面\ CMS \ SN-社区SRC-6.5.4.9243 \来源\ SenseNet \存储\架构\ SchemaEditor.cs:行 64 2017-02-01 19:46:27.6255 ===================== 2017-02-01 19:46:27.6425 ======================================== 2017-02-01 19:46:27.6595导入完成,出现1个错误。 2017年2月1日 19:46:27.6775读取日志文件: C:\ Users \用户MYUSER \桌面\ CMS \ SN-社区-SRC-6.5.4.9243 \源\ SenseNet \网页\工具\ importlog_20170201-194504.txt
BR, maros