我最近将 Tridion 从 2009 升级到 2011 SP1 并致力于解决链接问题。我已经更新了代码如下
public Tridion.ContentDelivery.Web.Linking.ComponentLink ComponentLink
{
get
{
if (this._componentLink == null)
{
this._componentLink = new Tridion.ContentDelivery.Web.Linking.ComponentLink(261);
}
return this._componentLink;
}
}
但是当我浏览网站时,它给了我以下错误
Java.Lang.Throwable:com.tridion.linking.Linking.getLogger()Lcom/tridion/logging/Logger;
详细错误
[Throwable: com.tridion.linking.Linking.getLogger()Lcom/tridion/logging/Logger;] Codemesh.JuggerNET.NTypeValue.Throw(Int64 inst) +373 Codemesh.JuggerNET.JavaClass.ThrowTypedException(Int64 inst) +1365 Codemesh .JuggerNET.JavaMethod.CallObject(JavaProxy jpo, JavaMethodArguments args) +524 Com.Tridion.Linking.ComponentLink..ctor(Int32 publicationId) +127 Tridion.ContentDelivery.Web.Linking.ComponentLink..ctor(Int32 publicationId) +28 项目.Web.UI.TridionBasePage.get_ComponentLink() +88 ASP.en_includes_controls_rss_items_ascx.get_componentLink() 在 d:\Websites\Project\en\Includes\controls\rss-items.ascx:7 ASP.en_includes_controls_rss_items_ascx.Header_PreRender(Object sender, EventArgs e) 在 d:\Websites\Project\en\Includes\controls\rss-items.ascx:20 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI。Control.OnPreRender(EventArgs e) +8996626 System.Web.UI.Control.PreRenderRecursiveInternal() +103 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 系统。 Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)+2496