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:


Line 863:                break;
Line 864:            case "Title":
Line 865:                result = GetValue<T>(cData.Title.ToString());
Line 866:                break;
Line 867:            case "Summary":

Source File: e:\author.artscouncil.ie\App_Code\CSCode\SiteFunctions.cs    Line: 865

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   SiteFunctions.GetContentInfoByContentId(Int64 contentId, String type, Int32 languageId) in e:\author.artscouncil.ie\App_Code\CSCode\SiteFunctions.cs:865
   contact_us_form.Page_Load(Object sender, EventArgs e) in e:\author.artscouncil.ie\contact-us-form.aspx.cs:34
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3535.0