The typical App-V error code consists of 2 x 4 bytes in the form hexadecimal: "0x000000-0x000000". The first six characters refer to the App-V source code and can be ignored. For error analysis the last 10 characters are interesting. So "00-0x000000". The first two characters show the type of error and the source. The last eight characters are the actual error code. Once an error code is returned as a decimal number, then this decimal number must be converted to a hexadecimal value for analysis.
Building the App-V error code
If the first character is an "8" (4 bits, number 10 in the graphic), it is not an error. If it is a "4", an error has been logged. A "2" indicates that it is a Windows error code.
The second character (4 bits, number 9 in the graph) shows the source from an App-V perspective. The following table breaks down the codes:
|01||Integration||Client Integration Log|
|02||Orchestration||Client Orchestration Log|
|03||Client Service||Client Service Log|
|04||Virtualization Manager||Client-VirtualizationManager Log or Client-Vemgr Log|
|05||Shared Components||Admin and Operational Logs|
|07||Publishing||Client Publishing Log, Client-PackageConfig Log, or
|08||Client Common||Admin and Operational Logs|
|0A||Virtualization Subsystem||virtual subsystem debug logs.|
|0B||Subsystem Controller||Client SubsystemController Log|
|0C||Streaming Manager||streaming debug logs|
|10||Scripting||Client Scripting Log|
|11||Client User Interface||Client StreamingUX Log|
|12||Sequencer||Only on Sequencer|
|13||Reporting||Client Reporting Log|
App-V error code
The actual error code follows. This can be an App-V specific error code (first digit "0"), but also a Windows return value (first digit "2") as "#HResult" or a system error code. The latter usually starts with a lot of zeros and can be analyzed using the "Net HelpMsg ###" command.
The system error codes (0x0000xxxx) can be looked up here:
For #HRESULT error codes, here is information:
A typical script integration error code is "10-0000000C". The first three bits are "0". The error source is "10", which is "scripting". That fits for now. "0C" in decimal is 12.
PS C:\Users\Andreas> net helpmsg 12
The access code is illegal.
If it is an HRESULT code, the error code usually starts with 0x8. This describes the first bit in the HRESULT. If it is a HRESULT code, only the first 16 bits are still interesting with the actual error code.
Microsoft HRESULT Code
Facility Codes (excerpt) https://msdn.microsoft.com/en-us/library/cc231198.aspx
1. FACILITY_NULL - the default setting code
2. FACILITY_RPC - the source of the error code is an RPC subsystem.
3. FACILITY_DISPATCH - the source of the error code is a COM Dispatch.
4. FACILITY_STORAGE - the source of the error code is OLE memory.
5. FACILITY_ITF - the source of the error code is COM/OLE interface management.
6. FACILITY_WIN32 - this region is reserved to map unprotected error codes into HRESULTs.
7. FACILITY_WINDOWS - error codes in the Windows subsystem
8. (19 HEX) FACILITY_HTTP - source of the error code is HTTP support.
14 is manifest 07 and returns "The memory control blocks were destroyed." with "Net helpMsg". This error occurred with a corrupted AppXManifest.xml in the package.
2 - it was logged (eventlog).
07 - App-V element is App-V publishing.
8 - it is a HRESULT in Facility Hex:19 (Dec 25) according to Facility table "FACILITY_HTTP"
0191 Hex or 401 Decimal is the error code in the Facility.
http status codes can be found here:
HTTP_STATUS_DENIED 401 The requested resource requires user authentication.
A final example directly from PowerShell:
Sync-AppvPublishingServer : Application Virtualization Service failed to complete requested operation.
Operation attempted: RefreshPublishingServer.
Windows Error: 0x801901F4 -
Error module: Publishing. Internal error detail: 45500D27801901F4.
Please consult AppV Client Event Log for more details.
At line:1 char:1
+ Sync-AppvPublishingServer 1
+ CategoryInfo : InvalidResult: (:) [Sync-AppvPublishingServer], ClientException
+ FullyQualifiedErrorId : RefreshPublishingServerError,Microsoft.AppV.AppvClientPowerShell.SyncAppvPublishingServer
Getting server publishing data failed.
Error code: 0x45500D27 - 0x801901F4
Error code 27-0x801901F4
2 - it was logged (event log).
07- App-V element is App-V publishing.
8 - it is a HRESULT in Facility Hex:19 (Dec 25) according to Facility table "FACILITY_HTTP".
01F4 = Dec. 500 "HTTP_STATUS_SERVER_ERROR", 500, "The server encountered an unexpected condition that prevented it from fulfilling the request".
Note: Of course, it is easier to always look for the error on the Internet first.
Here are some examples:
050009000A Microsoft Knowledge
05-00090001 Microsoft Knowledge
04-000028 anandthearchitect.com Microsoft Knowledge
27-801901F7 microsoft.com Microsoft Docs
0C-80070005 Microsoft Knowledge
0C-8007012F microsoft.com Microsoft Docs
00-c0000142 Microsoft Docs
You may also find this link helpful:
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.