![](/img/trans.png)
[英]BVN.404Handler. Adding redirect suggestions automatically from EPiServer scheduled job.
[英]BVN404 gadget showing in local dev, but not EpiServer integration enviornment
我可以在我的本地開發環境中訪問這個小工具,但不能集成,如下所示:
本地開發:
一體化:
我從這里仔細檢查了 BVN 設置: https://github.com/Geta/404handler#configuration 。 它們在我的 web.config 中是這樣設置的:
<section name="bvn404Handler" type="BVNetwork.NotFound.Configuration.Bvn404HandlerConfiguration, BVNetwork.EPi404" />
<episerver.shell>
<publicModules rootPath="~/modules/" autoDiscovery="Modules" />
<protectedModules rootPath="~/EPiServer/">
<add name="BVNetwork.404Handler" />
<bvn404Handler handlerMode="On">
<providers>
<add name="Custom Handler" type="CompanyName.Business.CustomPageNotFoundHandler, companyname-cms" />
</providers>
</bvn404Handler>
沒有securedComponents
部分,盡管我確實嘗試添加一個帶有allowedRoles="Administrator"
、 allowedRoles="*"
和allowedRoles="Everyone"
的部分用於測試目的。
為什么小工具在發布時無法查看的任何想法?
Nuget 安裝有時會錯過 protectedmodules 部分
確保BVNetwork.404Handler
中的 protectedModules 集合中。 Nuget 有時會錯過。
<episerver.shell>
<protectedModules rootPath="~/EPiServer/"> <!-- this line may vary -->
<!-- other modules -->
<add name="BVNetwork.404Handler" />
</protectedModules>
</episerver.shell>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.