When checking whether or not your system is compatible with Miracast, it can happen that an "The Wireless AutoConfig Service (wlansvc) is not running." error appears. In order to fix this, you can follow these steps:

 
  1. Press Windows Key + R and enter “services.msc” followed by the ENTER key.
  2. Find “WLAN AutoConfig” in the list of service, right-click it and select Properties.
  3. Press Start & change the startup type as "Automatic".
  4. Restart your computer.