This is a migrated thread and some comments may be shown as answers.

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

1 Answer 462 Views
Installer and Visual Studio Extensions
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 08 Sep 2016, 02:38 PM

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?


                <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" />

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 09 Sep 2016, 09:07 AM
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.

Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Installer and Visual Studio Extensions
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Telerik team
Share this question