Error message when trying to record

I have been using Audacity for years, and with my current set up for months, no problems. I had a windows freeze and had to press the power button to get the PC started again, and now when I try to record I get ‘Error while opening sound device. Please check the recording device settings and the project sample rate.’
using A Rode NT-1A mic and a Scarlett 2i2 interface. Any suggestions?

I meant to say I have uninstalled and reinstalled Audacity but still the same. Version is 2.1.0 Windows is 10.

Audacity can’t make Windows fall over, but device drivers can. Make sure you have the latest ones from Scarlett.

When you re-install Audacity, make sure it resets, too. There is a selector about half-way through the installer asking whether you want to clear all settings. Say yes. If you don’t do that, Audacity will wake up with all your old settings.

Koz