More in this section

Forums / Bugs & Issues / Object reference not set to an instance of an object.

Object reference not set to an instance of an object.

2 posts, 0 answered
  1. pratik gupta
    pratik gupta avatar
    1 posts
    22 Apr 2010
    23 Apr 2010
    Link to this post
    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 30: 		else
    Line 31: 		{
    Line 32: startScreen = String.Concat(UrlHelper.LoginUrlLine 33: 							, "?ReturnUrl="
    Line 34: 							, HttpContext.Current.Server.UrlEncode(this.Request.RawUrl));

    Source File: c:\Program Files\telerik\Sitefinity3.7\WebSites\VolgaTechSite\Sitefinity\Default.aspx.cs    Line: 32

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Cms.Web.UrlHelper..cctor() +82
    [TypeInitializationException: The type initializer for 'Telerik.Cms.Web.UrlHelper' threw an exception.]
       Sitefinity_Default.Page_Load(Object sender, EventArgs e) in c:\Program Files\telerik\Sitefinity3.7\WebSites\VolgaTechSite\Sitefinity\Default.aspx.cs:32
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    23 Apr 2010
    Link to this post
    Hi pratik gupta,

    Could you check the error log (App_Data/sitefinity.log) if there is another error thrown right before this one shown below

    [TypeInitializationException: The type initializer for 'Telerik.Cms.Web.UrlHelper

    It seems that there is another error that prevents the initialization of Telerik.Cms.Web.UrlHelper.

    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered