I have recently upgraded Tridion from 2009 to 2011 SP1 and working on the link resolving. I have updated the code as below
public Tridion.ContentDelivery.Web.Linking.ComponentLink ComponentLink
{
get
{
if (this._componentLink == null)
{
this._componentLink = new Tridion.ContentDelivery.Web.Linking.ComponentLink(261);
}
return this._componentLink;
}
}
but when I am browsing the website it gives me following error
Java.Lang.Throwable: com.tridion.linking.Linking.getLogger()Lcom/tridion/logging/Logger;
Detail Error
[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 Project.Web.UI.TridionBasePage.get_ComponentLink() +88 ASP.en_includes_controls_rss_items_ascx.get_componentLink() in d:\Websites\Project\en\Includes\controls\rss-items.ascx:7 ASP.en_includes_controls_rss_items_ascx.Header_PreRender(Object sender, EventArgs e) in 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 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Did you install the 64-bit version of Tridion 2011 CD ? I think all previous .jar files(such as cd_link.jar etc) are not removed from the lib directory. Could you please recheck it.