Error while updating Link Resolving in Tridion - tridion

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.

When I have seen this error after an upgrade, it is usually because the now deprecated cd_broker_conf.xml is still in place. You can rename it to something like deprecated_cd_broker_conf.xml, restart your services and check again.
Other common causes for that kind of error is:
You don't have the correct jars on your Web application Check Here

Related

Got Error at RunTime because of Required Field Validator

I am developing an ASP.NET Application in VISUAL STUDIO 2013, while adding REQUIRED FIELD VALIDATOR , am getting error at RUNTIME .. and the error is below ... Please Help Me to crack this problem
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
{
[InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).]
System.Web.UI.ClientScriptManager.EnsureJqueryRegistered() +2179162
System.Web.UI.WebControls.BaseValidator.RegisterUnobtrusiveScript() +10
System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +9708897
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974}
Add the below code to the Application_Start method in your Global.aspx:
protected void Application_Start(object sender, EventArgs e)
{
ScriptManager.ScriptResourceMapping.AddDefinition("jquery", new ScriptResourceDefinition
{
Path = "~/scripts/jquery-1.4.1.min.js",
DebugPath = "~/scripts/jquery-1.4.1.js",
CdnPath = "http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1.min.js",
CdnDebugPath = "http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1.js"
});
}

Installing Umbraco 7.1.1 and issues while addition business Starterkit module

[InvalidOperationException: Sequence contains no elements]
System.Linq.Enumerable.First(IEnumerable`1 source) +269
umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +2226
umbraco.presentation.developer.packages.Installer.ProcessInstall(String currentStep) +228
umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +423
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
I have installed fresh from application gallery and tried to install package from cms admin. And i am getting this error. How to resolve this error.
I think that this module, Business Website Starter Pack is not compatible with Umbraco 7. The Last update was 4 years ago.

asp.net application while deploying in IIS7 server error - cannot find table 0

I tried deploying an ASP.NET application in IIS server 7. I am using Windows 7. While deploying i am getting the error "Cannot find table 0."
Exception Details: System.IndexOutOfRangeException: Cannot find table 0
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IndexOutOfRangeException: Cannot find table 0.]
System.Data.DataTableCollection.get_Item(Int32 index) +95
LHS.RightColumn.Page_Load(Object sender, EventArgs e) in C:\Saravanan\Saravanan\Saravanan\LHS\LHS\RightColumn.ascx.cs:33
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Please help me how to resolve this.
In Visual Studio this application is running fine.
But in IIS it is showing this error.
Please help me in this
I had this error some weeks back and it occurred because the web.config file was incorrect. The database information was invalid. Hopefully, this will help you.

problem with DataReader ASP.NET (Visual Basic)

I have this problem :
[InvalidOperationException: No data exists for the row / column.]
System.Data.OleDb.OleDbDataReader.DoValueCheck(Int32 ordinal) +1029063
System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal) +12
ASP.addsousvoyage_aspx.hdVoyage_SelectedIndexChanged(Object sender, EventArgs e) in C:\Users\ZiGi\Desktop\VisualDesign\addSousVoyage.aspx:222
System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +111
System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +134
System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +10
System.Web.UI.Page.RaiseChangedEvents() +165
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485
When I do this :
MsgBox(myReader1.GetInt32(0).ToString)
Even if :
MsgBox(myReader1.FieldCount) returning 1 as value and the field(0) is integer.
What's the problem ?
Have you forgotten to do a myReader1.Read()?
I think this error can occur when it's forgotten.

NullReferenceException when running published website in IIS

I have a website that I published before adding it in IIS. After that I set the published website as the default website in IIS.
I got an error that the "Object reference is not set to the instance of an object" when I inserted values through form. There is no issues when the website is running in IIS without publishing. The error occurs when values are inserted using datagrid.
The error messages is as follows:
Server Error in '/' Application.
Object reference not set to an
instance of an object.
Description: An unhandled exception
occurred during the execution of the
current web request. Please review the
stack trace for more information about
the error and where it originated in
the code.
Exception Details:
System.NullReferenceException: Object
reference not set to an instance of an
object.
Source Error:
An unhandled exception was generated
during the execution of the current
web request. Information regarding the
origin and location of the exception
can be identified using the exception
stack trace below.
Stack Trace:
[NullReferenceException: Object
reference not set to an instance of an
object.]
Admin_MasterEntries.gvwMileStoneM_RowCommand(Object
sender, GridViewCommandEventArgs e)
+447 System.Web.UI.WebControls.GridView.OnRowCommand(GridViewCommandEventArgs
e) +105
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs
e, Boolean causesValidation, String
validationGroup) +76
System.Web.UI.WebControls.GridView.OnBubbleEvent(Object
source, EventArgs e) +95
System.Web.UI.Control.RaiseBubbleEvent(Object
source, EventArgs args) +35
System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object
source, EventArgs e) +117
System.Web.UI.Control.RaiseBubbleEvent(Object
source, EventArgs args) +35
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs
e) +115
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String
eventArgument) +163
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
+11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +5102
If any one knows please help me. Thank you.
That exception is caused by an object not being instantiated. Open the project and attach a debugger to the IIS process. A web service which is consuming the ASP.NET page is throwing the exception.
Try this:
Click your site in IIS
Open Pages and Controls section
Find ViewState group and check if ViewState is enabled.
Such solution helped me to solve null reference exception problem after publish.

Resources