동적 인 자리 표시 자에 대해이 가이드를 수행 중이며 getPlaceholderRenderings 파이프 라인을 실행할 수 없습니다. 이 파이프 라인이 작동하지 않는 이유Sitecore 6.6 파이프 라인 실행 실패
나는 볼 수 없습니다 :
<getPlaceholderRenderings>
<processor type="Site.CMS.Specialization.Pipelines.GetDynamicKeyAllowedRenderings, Site.CMS"/>
<processor type="Sitecore.Pipelines.GetPlaceholderRenderings.GetAllowedRenderings, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.GetPlaceholderRenderings.GetPredefinedRenderings, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.GetPlaceholderRenderings.RemoveNonEditableRenderings, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.GetPlaceholderRenderings.GetPlaceholderRenderingsDialogUrl, Sitecore.Kernel"/>
</getPlaceholderRenderings>
내 프로세서는 다음과 같습니다 :이 단계에서
public class GetDynamicKeyAllowedRenderings : GetAllowedRenderings
{
public new void Process(GetPlaceholderRenderingsArgs args)
{
string placeholderKey = args.PlaceholderKey;
}
}
을 내가 그냥 실행되는지 테스트하고있다. 그렇지 않습니다.
나는 지침서의 내용을 정확히 수행했지만이 파이프 라인은 실행되지 않습니다. 나는 수많은 시간을 재구성하고, 응용 프로그램 풀을 재활용하고, IIS를 다시 시작했습니다. 그 중 파이프 라인의 중단 점을 사용하여 응용 프로그램을 디버깅 할 때와 같은 방식으로 도움이되지는 않습니다.
업데이트
내 파이프 라인은 다음 코드를 추가하여 명중 한 것을 시험:
public class ExceptionThrower : HttpRequestProcessor
{
public override void Process(HttpRequestArgs args)
{
throw new Exception("ExceptionThrower");
}
}
그리고 설정이 라인 :이 당한다
<httpRequestBegin>
<processor type="Site.CMS.Specialization.Pipelines.ExceptionThrower, SCW.CMS" />
<processor type="Sitecore.Pipelines.PreprocessRequest.CheckIgnoreFlag, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.HttpRequest.EnsureServerUrl, Sitecore.Kernel"/>
.
.
.
</httpRequestBegin>
및 나는 예외를 본다.
getPlaceholderRenderings
에 추가하면 영향을받지 않습니다.
다음 예제 (http://www.techphoria414.com/Blog/2011/August/Dynamic_Placeholder_Keys_Prototype)는 원래 코드와 동일한 이름, 상속 및 매개 변수를 가지고 있습니다.
을, 나는 당신이 의미하는 코드에서 추정 : http://www.techphoria414.com/Blog/2011/August/Dynamic_Placeholder_Keys_Prototype – jammykam
네, 링크를 추가했는데 분명히 그걸 만들지 못했습니다 .. – Jon
SC6.6의 새로 설치에서 이걸 시도 했습니까? 코드에서 다른 것이 아닌지 확인하십시오. 그래도 괜찮아 보이는데 ... – jammykam