我正在尝试使用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检查吗?
答案 0 :(得分:1)
您需要添加:
requirePermission = “假”
到配置部分声明:
<section name="Examine" type="Examine.Config.ExamineSettings, Examine" requirePermission="false"/>
<section name="ExamineLuceneIndexSets" type="Examine.LuceneEngine.Config.IndexSets, Examine" requirePermission="false" />