Copied to clipboard

Flag this post as spam?

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


  • Darren Brennan 2 posts 72 karma points
    Oct 02, 2018 @ 09:42
    Darren Brennan
    0

    Usync - Object reference not set to an instance..... error displayed in place of Media folder image

    Hi

    I am having a strange issue for one of my clients where images are throwing a object reference error (within the page where the image should be) in environments which have synced content. As this is perhaps environment related I will describe the configuration below

    For the purposes of explaining, there are 4 environments, AUTH, PREPROD, LIVE1 and LIVE2

    • AUTH is the content master and configured as the Sync Source
    • PREPROD has a separate database which it shares with LIVE1 and LIVE2
    • AUTH & PREPROD are on the same webserver. LIVE 1 and LIVE2 each have their own separate webserver
    • PREPROD uSync folder is configured as a Virtual Directory in IIS and points at the AUTH site uSync folder to allow it to directly sync/import the changes in AUTH
    • Separately the AUTH Media folder is copied to all other environments using a batch file and XCOPY which runs on a scheduled task every 5 minutes

    The normal process in this configuration is the content authors create content and upload media on AUTH. Once published and considered ready to go live, the content authors then log into the PREPROD environment and do a uSync import which updates the shared PREPROD/LIVE1/LIVE2 database and the physical media files are already deployed via the scheduled task.

    This process has worked perfectly with no issues until about 2 weeks ago where we were informed of an 'Object reference not set to an instance of an object.' error. This is not a full screen YSOD error, rather the error is written to the page in the place where an image would normally be displayed.

    The process followed was:

    • Uploaded images in AUTH environment
    • Create new page in AUTH and saved & published
    • All content looked fine on AUTH and images displayed correctly
    • Logged into PREPROD and ran uSync import
    • The new page was synced successfully but the images within the page all display the 'Object reference.....' error on PREPROD, LIVE1 and LIVE2

    Initial investigation appears to show that the references created during the uSync import are different on PREPROD/LIVE1/LIVE2 than they are on AUTH. I was under the impression that uSync successfully updated these references as part of the sync/import process.

    Can anyone shed any light on what the issue is or provide a fix please?

    Many thanks in advance

Please Sign in or register to post replies

Write your reply to:

Draft