AutoCAD Crash Caused by Odd Registry Value

seen on Tom’s blog – Without a Net

In the past, we’ve seen issues where you would launch AutoCAD and it would immediately close with a Customer Error Report ( CER ) dialog and possibly the message:
This version of AutoCAD was not installed properly and some features may not run correctly. You should reinstall AutoCAD immediately to make sure all features are working properly. Do you wish to continue anyway?
This often points to a corruption in the .NET Framework but we recently discovered a cause that was a bit more unusual.

It turns out that one source for this kind of crash stems from a bad registry entry in the HKEY_CLASSES_ROOT.png key. There have been user-reported cases where the value in the Content Type key contains a leading space:

In cases where someone had that leading space in the value, simply removing it resolved the crash.