Visual Studio is crashing when docking or dragging windows around after installing recently released .NET Framework cumulative update previews for Windows 10 and Windows Server.
Visual Studio Enterprise and Community editions are not the only products experiencing issues after the two updates are installed, with customers reporting that apps built using the Windows Presentation Foundation (WPF) UI framework are also crashing.
“We have identified the root cause in KB4598301 and are working to get a fix released,” Microsoft software engineer Jeff Robison said. “We’re also working to release VS updates that will make it invulnerable to the KB’s bug.”
“A fix for this issue has been internally implemented and is being prepared for release,” the Visual Studio community Feedback Bot added to the support thread earlier today. “We’ll update you once it becomes available for download.”
Uninstalling the problematic KB4598301 and KB4598299 Windows 10 updates or using context menu commands to drag VS windows around the screen are viable workarounds.
However, Robison also provided an additional workaround that doesn’t require uninstalling updates or altering one’s workflow.
To get rid of the VS crash issue you will have to go through the following steps:
- Append the following text to the element’s
- After restarting VS, you should be able to drag your VS windows around without crashing.
However, based on feedback provided by users who have tested this workaround, it might not resolve the issue on systems where KB4598299 was installed.
If the crash issues persist and you want to go further with uninstalling the updates, you can follow this procedure to uninstall the updates:
- Select the start button or Windows Desktop Search and type update history and select View your Update history.
- On the Settings/View update history dialog window, Select Uninstall Updates.
- On the Installed Updates dialog window, select the KB4598301 and KB4598299 updates, and click the Uninstall button.
- Restart your device.
BleepingComputer also has a detailed tutorial on how to uninstall Windows updates from the command prompt or at boot using the Advanced Options feature.