Cannot start debugging a project
I have a WPF forms application, which I've left dormant for a while, and come back to, however when I try to debug it I get the following exception:
Value cannot be null.\r\nParameter name: activationContext
" at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)\r\n at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ThreadHelper.ThreadStart()"
As the trace shows this happens before my code starts so I'm not sure whats causing it.
When I came back to it it said "Cannot find PresentationCore.dll", I've seen this before and removing and re-adding the PresentationCore.dll reference fixed it then. I've also tried a default WPF application and after updating the PresentationCore.dll reference that works.
To the best of my knowledge this program compiled and ran fine before I left it. Can anyone offer pointers to where the problem could be?

