I'm running Visual Studio 2012, when I add a new File/Reference to a project the message box appears showing the error message
set property 'system.windows.resourcedictionary.deferrablecontent' threw an exception
I read an MSDN article suggesting to run the command devenv /resetuserdata
on visual studio command prompt to resolve this problem, tried it but didn't work for me. In fact the command prompt shows the Unknown Error
message.
The mentioned issue can be resolved by simply restart the Visual Studio. :P
Other wise make sure given
Resourcedictionary.xaml
path is correct or notI had this problem with My Devexpress Project in VS 2015 What finally worked for me was. Close my solution, Close Visual Studio, Open Visual Studio, Create a New dummy project, Add a form to it, Close and save the new project, Reopen original project and all was ok.
In my case it was to first launch Visual Studio in safe mode. You can create a shortcut for visual studio with a target like this:
'"F:\Program Files\Visual Studio\VS2013\Common7\IDE\devenv.exe" -safemode'
Once launched in safe mode, you can remove the problematic extension via the
Addin Manager
. However, this wont work for some extensions, as the uninstall option might be disabled for certain extensions when running in safe mode, particularly if you have already uninstalled another extension in the same session.In My case the problem was caused by Paradox Game engine, in which I had uninstalled it via 'Programs and Features' - which in return did not remove the extension which was originally installed via Nuget package. Uninstalling Paradox via "Programs And Features" left the extension itself still registered in Visual Studio, presumably causing a hidden
NullReferenceException
.This issue can be caused by any extension that may have an error in it, or by extensions that were not properly uninstalled.
Also, see this article...
I fixed it. The resolution was to remove the
Windows Azure Tools for Visual Studio 2012
which I was not actually using, and the error went straight away.Also seem to be able to get around this by closing the project and vis studio instance, re-opening, then when the start page/open project screen appears selecting
Tools > Extensions and Updates...
, then pressingClose
Now open the project and the error doesn't get thrown when trying add files or manage nuget packages, weird.
Just annoying you have to remember to open Extensions and Updates each time...