After trying and retrying everything I could think of for a few hours, I used System Restore to roll back to a point created two weeks ago. That fixed it. I don't know why it fixed it; it could be a coincidence.

Strange, but it's working now.