+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / Add Job Object Reference Error

Add Job Object Reference Error

7 posts, 0 answered
  1. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    08 Mar 2007
    Link to this post
    When saving a new Job in the sample site I get an Object Reference Error. Has this already been addressed? The stack is as follows:

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Nolics.ORMapper.WebBinding.WebQueryView.ExecuteInsert(IDictionary values) +498
       System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +72
       System.Web.UI.WebControls.DetailsView.HandleInsert(String commandArg, Boolean causesValidation) +390
       System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +623
       System.Web.UI.WebControls.DetailsView.OnBubbleEvent(Object source, EventArgs e) +95
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
       System.Web.UI.WebControls.DetailsViewRow.OnBubbleEvent(Object source, EventArgs e) +109
       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
    

    Also, When creating a new Project in the Project Manager I get the following error:

    Exception has been thrown by the target of an invocation.


    Has this error been addressed? I can watch the Projectect Manager copy files into the new directory. Then at the end it rolls everything back and throws the error.

    Thanks in advance.

    Ben
  2. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    02 Dec 2016
    09 Mar 2007
    Link to this post
    Hello Ben,

    Thank you for reporting this issue. We are currently working on more friendly and descriptive error messages.

    The Project Manager impersonates the ASPNET account as the currently logged user. Please check in the top right corner of the Project Manager screen what account is being used at the moment. This user should be granted full permissions to the WebSites folder. The ASP.NET machine account should also have full permissions to this folder.

    Best wishes,
    Hrisi
    the telerik team
  3. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    10 Mar 2007
    Link to this post
    Thank you for the response. I have completed a reinstall including uninstall and deleting the Program Files/Telerik folder. After reinstalling the permissions were set to Anonymous, Basic, and Integrated. All were checked. Obviously with basic set after logging in everything works great. However, with unchecking Basic authentication, Sitefinity does not show any username in the project manager. Everything works fine from VS.

    PS Additional creating a new Job still throws the error seen below in the stack trace.
  4. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    10 Mar 2007
    Link to this post
    I forgot to mention. Obviously, ASPNET has full access to Program Files/Telerik on down.
  5. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    12 Mar 2007
    Link to this post
    Hello Ben,

    For Sitefinity sites NTFS permissions for the local ASPNET account can be set only for the App_Data folder.
    The Project Manager requires full permissions for ASPNET account for Sitefinity3.0\ProjectManager\App_Data  and  Sitefinity3.0\WebSites folders.
    We recommend that you take a look at Authentication Methods Supported in IIS 6.0  for a more detailed description.
    Microsoft offers a free tool for Authentication and Access Control Diagnostics IIS Diagnostics Toolkit (x86). This may help you investigate the current settings for virtual directories.


    Best wishes,
    Rebecca
    the telerik team
  6. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    13 Mar 2007
    Link to this post
    After fixing 75 permissions errors that the utility told me about everything is working well now.

    Still getting the Object Reference Error when adding a new Job. Are others getting an error when adding a new Job in the sample website? Or is just me?

    Thanks,

    Ben
  7. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    02 Dec 2016
    15 Mar 2007
    Link to this post
    Hi Ben,

    Sorry for our omission. This exception is raised only on first load of Jobs.aspx page. If you run a query (pressing "Find Jobs" button), subsequent adding of Jobs should work. The reason for this behavior is a missing initialization of the radGrid DataSource.
    Make the following changes to the Jobs\JobList.ascx.cs:

       protected void Page_Load(object sender, EventArgs e)
      {
        if (!Page.IsPostBack)
        {
          //Default filter to all categories and types when page loads.
          jobCategoryID = CATEGORY_ALL;
          jobTypeID = TYPE_ALL;
          LoadJobs(); //this should be added
        }

        ...
        ...
       }

    All the best,
    Hrisi
    the telerik team
Register for webinar
7 posts, 0 answered