I started getting this problem today every time I double-clicked on a .cshtml (MVC Razor) file.
I have Visual Studio 2015, with Update 3 installed along with Xamarin and the latest version of Resharper.
I looked in the Event Viewer where I noticed that every time it happened, I would get an event with ID 1001 from Windows Error Reporting. Here are some of the details from the event:
Fault bucket 126628082325, type 5
Event Name:
VisualStudioNonFatalErrors
Response: Not available
Cab Id: 0
Problem signature:
P1: devenv.exe
P2: 14.0.25420.1
P3: unknown
P4: vs/core/packageloadfailure
P5: [XamarinIOSPackage]
P6: unknown
P7: unknown
P8: CVsPackageMgr::CVsPackageInfo::LogHr
P9: 0
P10: None
Attached files:
\?\C:\Users{username}\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml
\?\C:\Users{username}\AppData\Local\Temp\VSFaultInfo\161104_024954_7771968\ErrorInformation.txt
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER47B3.tmp.WERInternalMetadata.xml
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_devenv.exe_147f9374de860c29317ae48d025a111977d1f_00000000_246b4a34
Analysis symbol:
Rechecking for solution: 0
Report Id: da867a9f-a2c7-11e6-8298-a0369f8ee7a3
Report Status: 0
Hashed bucket: 75f36458281df055612fae225a6dcaa0
I don't see the connection between .cshtml and Xamarin but when I checked for an update to Xamarin (Tools->Options->Xamarin->Other->Check Now), there was an update waiting. I installed that update and that appears to have reset the Xamarin IOS installation and the problem no longer occurs.
So, my advice if you have Xamarin Tools installed and see this error and a corresponding event mentioning Xamarin, check for an update to Xamarin and apply it.