我正在尝试使用umbraco检查进行站点搜索。它在开发计算机上工作正常,但是,在共享主机上,未构建索引。共享主机使用中等信任。我已经尝试执行此处提到的步骤:http://our.umbraco.org/wiki/install-and-setup/medium-trust-with-umbraco-45plus,但我无法使用第一步:
<trust level="Medium" originUrl=".*" />
它给出了此错误:
This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.
我可以在中等信任的共享托管环境中使用 umbraco 检查吗?
您需要添加:
requirePermission="false"
到配置部分声明:
<section name="Examine" type="Examine.Config.ExamineSettings, Examine" requirePermission="false"/>
<section name="ExamineLuceneIndexSets" type="Examine.LuceneEngine.Config.IndexSets, Examine" requirePermission="false" />