More in this section
Forums / Developing with Sitefinity / PagesConfig NullReferenceException

PagesConfig NullReferenceException

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Kiran
    Kiran avatar
    1 posts
    11 Nov 2014
    12 Nov 2014
    Link to this post
    I have previously worked on SharePoint but am very new to Sitefinity and have to work on an existing version 6.0 project. When I ran the project after numerous additions to get the build working, including NotificationsConfig and PagesConfig files, I get "Object reference not set to an instance of an object." error. The stack trace shows it occurs on the line "Telerik.Sitefinity.Modules.Pages.Configuration.PagesConfig.OnPropertiesInitialized()". 

    This has happened whether I run the project from Visual Studio or from IIS. The PagesConfig file currently being used is given below.

    <?xml version="1.0" encoding="utf-8"?>
    <pagesConfig xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="6.0.4200.0" homePageId="f17c5541-3414-467a-92f4-1831f5e59ef2" defaultFrontendTemplateId="0c0ebced-359a-4a90-ab61-11d4ae2bce24" backendHomePageId="f669d9a7-009d-4d83-aaaa-700000000001" />

    It's a copy of the latest version file with the version number changed to match the files in the project.

    As I can't find anything on this issue it's likely I'm missing something basic in the setup, maybe the GUID's listed above etc. 

    Would it be possible to get a working version of the PagesConfig.Config file for Sitefinity version 6.0 if that is not correct above? If it's ok what can I possibly try to get the project working? 

    Also there seems to be no documentation of this file that I can find online, is it possible to get the link for any resource on this?
  2. Pavel Benov
    Pavel Benov avatar
    341 posts
    14 Mar 2016
    17 Nov 2014
    Link to this post
    Hello Kiran,

    Changing the configuration file version is not recommended. This number is assigned either on project creation or after an upgrade. I would suggest to use the Project manager to create an empty site and get the default configuration files that are created for it and that you need (except for DataConfig and ProjectConfig files), then swap them with the ones in your project. If this does not help I would suggest to submit a support ticket and prepare a copy of the project and database to send us in order to investigate. 

    Pavel Benov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered