OneDrive and browsers operate through standard web ports, while the Microsoft Store relies heavily on the Network Location Awareness (NLA) and WinHTTP system components.
1. Enable current TLS protocols (Most common cause). If TLS 1.2 or 1.3 is disabled on the system, the Store will return a network error, even if OneDrive is running.
Press Win + R, type inetcpl.cpl, and press Enter (this will open Internet Properties). Go to the Advanced tab. Make sure the following options are checked: Use TLS 1.2 and Use TLS 1.3 (if available).
Click Apply and OK.
2. Reset the system proxy server (WinHTTP).
Browsers can ignore the system proxy, but the Microsoft Store will freeze if it uses an old or broken address. Open a command prompt as Administrator
Enter the command to reset the proxy
Code:
netsh winhttp reset proxy
3. Then clear the network cache by running the following commands one by one:
Code:
ipconfig /flushdns
netsh int ip reset
netsh winsock reset
Restart your computer.