Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Orchardcms 尝试设置Orchard CMS项目时出现错误消息_Orchardcms_Orchardcms 1.6 - Fatal编程技术网

Orchardcms 尝试设置Orchard CMS项目时出现错误消息

Orchardcms 尝试设置Orchard CMS项目时出现错误消息,orchardcms,orchardcms-1.6,Orchardcms,Orchardcms 1.6,从基于web的“入门”页面,将SQL Server Express与此连接字符串一起使用(正确): 数据库存在&为空 我得到这个错误: Setup failed: An exception was thrown while invoking the constructor 'Void .ctor(Orchard.Environment.Configuration.ShellSettings, Orchard.Data.ISessionFactoryHolder)' on type 'SqlCeC

从基于web的“入门”页面,将SQL Server Express与此连接字符串一起使用(正确):

数据库存在&为空

我得到这个错误:

Setup failed: An exception was thrown while invoking the constructor 'Void .ctor(Orchard.Environment.Configuration.ShellSettings, Orchard.Data.ISessionFactoryHolder)' on type 'SqlCeCommandInterpreter'.
我只是按照奥莱利的书“Orchard CMS启动和运行”中的教程进行操作


如何修复此问题?

您的数据源可能是
\SQLExpress
,因为如果您安装它,这是默认实例

另外-看起来您选择了“使用内置存储”选项-因为它正在抱怨SQLCe。如果要使用SQL express,您需要选择“使用现有SQL Server、SQL express数据库”


您可以查看以验证字符串的其他详细信息。对我来说,结果是我的连接字符串不完整。我实际上没有复制整个内容

我刚刚使用SQL Compact进行了尝试-相同的错误我也在使用localhost-应用程序指向c:\Inetpub\wwwroot\Orchard.Source\src\Orchard.web我的数据源是“”。>这适用于其他应用程序-这是我如何设置它的。我想你是对的-在某个地方它被弄糊涂了。这里的orchard“可能”有一个bug。我第一次尝试创建应用程序时,它报告了一个错误。然后如果你修复它并重新提交“连接字符串”框,它就会消失。不确定,但值得一看。我将其修复到重新开始。是SQL Server的默认实例,但不是SQL Express的默认实例。您是否专门这样设置了SQL Express?您是否也有SQL Server实例。我不认为乌节在这里被搞糊涂了。更有可能是为数据库类型选择了错误的广播框。是的,方框消失时出错,但选择另一个收音机方框并重新选择正确的方框会使其返回。这不是一个功能问题,只是一个UI问题。我确实专门将它设置为“.”是的。当连接字符串消失时,我不确定它是否仍然提交它-无论如何都值得调查。
Setup failed: An exception was thrown while invoking the constructor 'Void .ctor(Orchard.Environment.Configuration.ShellSettings, Orchard.Data.ISessionFactoryHolder)' on type 'SqlCeCommandInterpreter'.