I can't find the definition of HRESULT: 0x80070002
I can usually find these searching the include paths but this code was not found. Does anyone have the explanation of what it is? I think it is coming from the shell.
In this case, 0x80070002 has a facility of 7 (FACILITY_WIN32), meaning the code (2) is a Win32 error code (ERROR_FILE_NOT_FOUND).
0
SoronelHaetir
On
errlook.exe says it is "The system cannot find the file specified." , agreed that it is not in any of the SDK (or VS2019) headers.
0
LFarias
On
Removing and adding the service(WebSite) back in IIS fixed the error for me.
It might have been the case of the service path being incorrect since it was last added in IIS.
Make sure you're passing the correct physical path to IIS when adding the a web site.
0x80070002is the Win32 error code 2 (ERROR_FILE_NOT_FOUND) inHRESULTformat, as returned by theHRESULT_FROM_WIN32()macro.When in doubt, you can use the
HRESULT_FACILITY()andHRESULT_CODE()macros to help you figure out what anHRESULTstands for.In this case,
0x80070002has a facility of 7 (FACILITY_WIN32), meaning the code (2) is a Win32 error code (ERROR_FILE_NOT_FOUND).