"Object reference not set to an instance of object" after chose theme by wizard

2 posts, 1 answers
  1. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 08 Sep Link to this post

    The tag Application in App.xaml is in error, after apply new theme at project

    I chose VisualStudio2013 theme, I click "Configure Project" on my project, chose controls and theme, after that, it appears strange error:

    "Object reference not set to an instance of object" highlighting Application tag. Why?

     

        <Application.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Input.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.ScheduleView.xaml" />
                    <ResourceDictionary Source="Helpers/Themes/Telerik.ReportViewer.Wpf.xaml"/>
                    <ResourceDictionary Source="Styles/CommonDictionary.xaml" />
                    <ResourceDictionary Source="Styles/IconDictionary.xaml" />
                    <ResourceDictionary Source="Styles/ToolBarDictionary.xaml" />
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </Application.Resources>
    </Application>

  2. Answer
    Martin
    Admin
    Martin avatar
    63 posts

    Posted 09 Sep Link to this post

    Hello Dario,

    I can suggest you clean and rebuild the project. Since you are changing dependencies, this can happen.
    furthermore, you can try manually cleaning the content of the obj and bin folders of the project, clean and rebuild.

    This error is actually non-breaking, and it should get resolved after cleaning that cache and restarting VisualStudio. You need not worry about it.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top