What does HRESULT 0x800C0002 (INET_E_INVALID_URL) mean?

 
Previous Next
CERT_E_INVALID_NAME INET_E_NO_SESSION

INET_E_INVALID_URL

INET_E_INVALID_URL is a URL Moniker HRESULT. It means that the URL Moniker layer could not parse the supplied URL. The scheme, authority, path, escaping, character encoding or overall syntax is invalid for the requested protocol handler.

What to check

  • Validate the full URL before binding, including scheme, hostname, port, path and percent encoding.
  • Do not build URLs by unsafe string concatenation; encode path and query components separately.
  • Log a redacted URL form when query parameters may contain credentials or tokens.

Microsoft documentation


Looking for a different code? Search another status or error code.