Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jack Gill 7 posts 77 karma points
    Dec 21, 2015 @ 14:39
    Jack Gill
    0

    Build is still referencing local file directory on the remote server

    In my latest build of my umbraco 7 site, I am getting the following server error

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    

    The following stack trace seems to indicate that it is looking for an object in a controller than is on the local machine I am using to build the site in MVS - after build I am then pushing it to a remote server.

    The first few lines of the stack trace is:

    [NullReferenceException: Object reference not set to an instance of an object.]
    
    
    domain.co.uk.logic.Controllers.MembershipController.GetMyForm(Int32 currentNodeId, String currentUrl, EnMyAction formAction) in c:\Users\~user~\Documents\website\domain.co.uk.logic\Controllers\MembershipController.cs:324
    

    Would anyone be able to shine a light on why this could be happening?

    Thanks.

  • Steve Morgan 1350 posts 4460 karma points c-trib
    Dec 21, 2015 @ 16:34
    Steve Morgan
    1

    HI,

    Are you building and publishing the site (with debug set to false?).

    http://stackoverflow.com/questions/12281962/why-does-the-stack-trace-shows-my-development-files-path

    Kind regards

    Steve

  • Jack Gill 7 posts 77 karma points
    Dec 21, 2015 @ 16:38
    Jack Gill
    0

    Hey thanks, I've actually just this minute solved the underlying issue, it was a corrupted umbraco.config file.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies