Skip to content

Instantly share code, notes, and snippets.

Last active Dec 9, 2021
What would you like to do?
Microsoft Error Issues


There is an increasingly annoying trend among many development tools nowadays to intentionally omit useful information when displaying an error message to the end-user. It has become a habit for developers behind many popular software, where they would actively try to hide such information from the user.

This also includes Microsoft products.

I don't agree with these kinds of desicions; and in contrast to what the product designers might perceive, I believe the actions to hide information to be a bad UX design.

While there might be several reasons as to why this might be useful (removing sensitive information, etc), I believe this is mostly done since most users do not really understand (or care to read) the actual error message, and/or lack the necessary skills to fix the issue.

Lazy users mostly just prefer to see a giant "reset to factory settings" button and click on it, whenever an error might occur.
This might be fine in some situations for users or setups that don't really matter, and companies are happy to oblige.
However, as a power user, I tend to prefer to get an actual explanation as to why a particular problem is happening, and actively try to fix it -- as opposed to blindly "reset" settings to default, or some other solution.

As many resources (including Microsoft's own answers page) report invalid, mundane, useless information in regards to fixing Microsoft products when an ADSI HRESULT error code has occurred (such as "Disable your antivirus and firewall", "Replace your network adapter", "Clear the cache", "Create a new user account", "Perform SFC and DISM scans", "Perform a Clean boot", "Try to Sign out and in again", or the worst offender, "Run the Microsoft Store troubleshooter" -- which never really works) -- it's likely that you'll never be able to figure out why a certain issue is happening, and fix it.

To me, it is stupid to come up with the solutions without actually investigating/debugging the issue and trying to figure out what is that went wrong. This is like throwing a dart in the dark, hoping to get results.

In many cases, the network adapter is fine, the state of all Windows files are in order, and the cache doesn't even impact the issue, at all. There might be an external factor to the issue involved.

To solve this issue, I've decided to compile a list of possible error codes that a user like me might run into, try to decipher each of the issues, and write in-depth explanations for each one, and how to solve them.

0x80070490 i.e. ERROR_NOT_FOUND

Possible causes:

  • The HxTsr.exe is unable to connect to (package: microsoft.windowscommunicationsapps)
  • It is likely that the connection to the requested domain is blocked. (It's possible that a NXDOMAIN DNS response can result in ERROR_NOT_FOUND).


  • This error code is most likely received right after the process of adding a new account to sync, in the Email & accounts or the People app.


  • Whitelist the domain and/or HxTsr.exe process
  • Make sure that the microsoft.windowscommunicationsapps is able to successfully communicate with the requested domain.

What is the purpose of This undocumented domain is used to return endpoints for 3rd party services. For example:

<?xml version="1.0" encoding="UTF-8"?>
  <isp domain="" disp-name="" transport="1" in-serv="" in-uname-fmt="2" in-port="993" in-ssl="1" out-serv="" out-auth="1" out-uname-fmt="2" out-port="465" out-ssl="1" />


Possible causes:

  • The wwahost.exe is unable to connect to
  • Note: If a proxy to localhost or is being used on the system, all store or UWP apps (formerly known as Metro apps) will refuse to connect.


  • The most common causes are either the connections made from the UWP apps (such as Settings) are blocked by a firewall, or they're being failed (e.g. the internet connection is unavailable).


  • Whitelist the domain and/or wwahost.exe process
  • If a proxy to localhost or is being used, try an app such as Fiddler to disable the AppContainer isolation technology present in Windows 8 and later versions:
    Click on WinConfig » Exempt All » Save Changes


Possible causes:

  • The NCSI/NLA (Network Connectivity Status Indicator, formerly Network Location Awareness) is not functioning correctly (thus, Windows thinks the network is offline, when in actuality it is not).


  • This error message is displayed when Microsoft Store erroneously believe that the whole system is disconnected from the Internet.

You'll need the Internet for this.
It doesn't look like you're connected to the Internet. Check your connection and try again. The network location cannot be reached. For information about network troubleshooting, see Windows Help.

  • You'll also see the Offline Icon in the tray bar.


  • To skip DNS NCSI check and return the expected value everytime, edit the file C:\Windows\System32\drivers\etc\hosts, and place this line in it:
  • Make sure the values that are set in the following registry key can be accessed by your system:

  • This means that the following requirements should be met by default:

    • The hostname should resolve to in IPv4 and fd3e:4f5a:5b81::1 in IPv6
    • The hostname should be accessible for IPv4, and for IPv6
    • The URL should return Microsoft NCSI
    • The URL should return Microsoft Connect Test
  • If you use Pi-hole or a firewall, verify that the OS can access the mentioned endpoints using your network setup.

  • Temporarily use a public DNS such as, or instead of the one provided by DHCP.

  • This SO post has more information on the NCSI endpoints.

  • Verify that WinHTTP is picking up system proxy settings correctly, if you use one; see this answer.

netsh winhttp set proxy command


netsh winhttp import proxy source=ie
  • Note: you must restart the network interface or reboot the system for the NCSI changes to take effect.
  • Note: The mentioned DNS and hostnames should be accessible shortly after the network adapter is enabled; if the results are not received in the expected time window, the test will fail.

0x80131500 i.e. COR_E_EXCEPTION

An exception within Microsoft apps was raised due to something not being handled correctly.

Possible causes:

  • Parameter market was specified with invalid value: IR


  • IR is the country code for Iran. It appears that choosing "Iran" as the market value is totally an "invalid" option for Microsoft Store.
  • This causes an exception being raised in the app, and since this is not handled correctly, the app will stop to function.


  • Open Settings ( Win + I ) → Date & time → Region
  • Change the value of "Country or region" from "Iran" to another option, e.g. United States
  • Refresh Microsoft Store


  • Store files to fetch the "recommendations" page (on the homepage) when "IR" is selected, so it simply fails to load any other page.
    "code": "InvalidParameterValue",
    "data": [],
    "details": [],
    "innererror": {
        "code": "InvalidParameterValue",
        "data": [],
        "details": [],
        "message": "Parameter market was specified with invalid value: IR.",
        "source": "StoreEdgeFD",
        "target": "market"
    "message": "Parameter market was specified with invalid value: IR.",
    "source": "StoreEdgeFD",
    "target": "market"


Possible causes:

  • The incoming traffic is originated from "Iran"


  • Currently unknown.


  • Use any means of changing the IP address (e.g. Proxy, VPN, etc)

  • In Iran, you can use a service like, which routes the traffic to Microsoft servers through a network residing outside Iran.

    To use Shecan, set the system DNS settings to the following addresses:


  • Currently, unknown.


Possible causes:

  • The Windows Update (i.e. wuauserv) service is Stopped and/or Disabled


  • From services.msc or Task Manager → Services, locate Windows Update or wuauserv, and make sure it's in the Running state. If not, choose Start from the context menu.
  • If the service is disabled, you'll need to enable it first in order to start it: From the services.msc, go to Windows Update → Properties, then change Startup type from Disabled to either Manual or Automatic, then try to start the service.


  • This error code is raised when a Windows service cannot be started, either because it is disabled, or because it has no enabled devices associated with it.


Possible causes:

  • Unable to resolve:


  • This may be the case where the connections to the are being blocked by a software such as Pi-hole.


  • Whitelist the domain
  • Restart the Update service / assistant


  • The following URL as an example is being requested:{GUID}/19042.631.201119-0144.20h2_release_svc_refresh_CLIENTBUSINESS_VOL_x64FRE_en-us.esd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment