asp.net-mvc - Orchard CMS 安装错误?

标签 asp.net-mvc orchardcms

我试图从源代码安装 Orchard CMS。我在 VS 2012 中打开它,我使用的是 Sql Server 2012。

我收到以下错误。

enter image description here

错误文本:

Setup failed: could not execute query [ select rolerecord0_.Id as Id13_, rolerecord0_.Name as Name13_ from Test_Orchard_Roles_RoleRecord rolerecord0_ where rolerecord0_.Name=@p0 ] Name:p1 - Value:Anonymous [SQL: select rolerecord0_.Id as Id13_, rolerecord0_.Name as Name13_ from Test_Orchard_Roles_RoleRecord rolerecord0_ where rolerecord0_.Name=@p0]



我找不到此错误的任何解决方案。我哪里做错了?我该如何解决这个错误?当我选择内置存储时,它会运行。另外,如果我使用内置的有什么缺点吗?

更新(新的错误信息)

Setup failed: could not execute query [ SELECT TOP (@p0) this_.Id as Id17_2_, this_.Number as Number17_2_, this_.Published as Published17_2_, this_.Latest as Latest17_2_, this_.Data as Data17_2_, this_.ContentItemRecord_id as ContentI6_17_2_, contentite1_.Id as Id16_0_, contentite1_.Data as Data16_0_, contentite1_.ContentType_id as ContentT3_16_0_, contenttyp4_.Id as Id18_1_, contenttyp4_.Name as Name18_1_ FROM Orchard_Framework_ContentItemVersionRecord this_ inner join Orchard_Framework_ContentItemRecord contentite1_ on this_.ContentItemRecord_id=contentite1_.Id left outer join Orchard_Framework_ContentTypeRecord contenttyp4_ on contentite1_.ContentType_id=contenttyp4_.Id WHERE contentite1_.Id = @p1 and this_.Published = @p2 ] Name:cp0 - Value:2 Name:cp1 - Value:True [SQL: SELECT TOP (@p0) this_.Id as Id17_2_, this_.Number as Number17_2_, this_.Published as Published17_2_, this_.Latest as Latest17_2_, this_.Data as Data17_2_, this_.ContentItemRecord_id as ContentI6_17_2_, contentite1_.Id as Id16_0_, contentite1_.Data as Data16_0_, contentite1_.ContentType_id as ContentT3_16_0_, contenttyp4_.Id as Id18_1_, contenttyp4_.Name as Name18_1_ FROM Orchard_Framework_ContentItemVersionRecord this_ inner join Orchard_Framework_ContentItemRecord contentite1_ on this_.ContentItemRecord_id=contentite1_.Id left outer join Orchard_Framework_ContentTypeRecord contenttyp4_ on contentite1_.ContentType_id=contenttyp4_.Id WHERE contentite1_.Id = @p1 and this_.Published = @p2]

最佳答案

在创建 SQL Server 数据库之前,将搭配设置为 Latin1_General_100_CI_AS
这样做,右键单击 数据库请注意 SQL Server 管理工具并点击 新建数据库 .当您看到 新建数据库 窗口,输入数据库名称,然后点击 选项 标签左侧 新建数据库 视窗。

你会看到 搭配 “新建数据库”窗口顶部的组合框。更改 默认 Latin1_General_100_CI_AS .然后再次运行 Orchard 安装程序。

关于asp.net-mvc - Orchard CMS 安装错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15487121/

相关文章:

c# - 特定于 .net C# dataannotations 的 .NET 正则表达式

jquery - 使用 jquery 解析带双引号的 json 响应(JavaScriptSerializer)

c# - Orchard 客户端验证 - 它应该如何外观/工作?

orchardcms - 来自 IContent 项目的 Orchard cms Html

c# - 您可以将 CMS Orchard 与您自己的 ASP.NET 网站一起使用吗?

asp.net-mvc-4 - Orchard 1.7 - 为未发布的内容创建自定义工作流程事件

c# - ASP.NET MVC(三)绑定(bind)POST值到 'object'类型使对象成为System.String[],为什么?

asp.net-mvc - 拆分 MVC Controller 功能的最佳方法是什么?

c# - knockout 绑定(bind)第二次不起作用

documentation - 我在哪里可以阅读有关 Orchard 中的 ContentManager.Query() 的信息?