I tried this one and it worked for me:
-
Go to ‘Debug Properties‘
-
Find ‘Web Server Settings‘
-
Change the port in ‘App URL‘ section and save the changes
-
Run the application and the same error will appear again
-
Switch the port back to the original port and save the changes
-
Run the application and enjoy it!
I hope this trick work for you.