| Previous | Next |
| HNS_NETWORK_ALREADY_EXISTS | HNS_POLICY_ALREADY_EXISTS |
HNS_LAYER_ALREADY_EXISTS
HNS_LAYER_ALREADY_EXISTS is an HRESULT used by Windows Host Networking Service (HNS). It indicates that creating the underlying layer collided with an already registered HNS layer.
What to check for HNS_LAYER_ALREADY_EXISTS
- Inspect the existing network and layer state before retrying the create request.
- Verify whether another runtime instance or provisioning task created the layer first.
- Serialize concurrent provisioning so that only one workflow owns layer creation.
Microsoft documentation on Windows container networking and HNS
Diagnostic discriminator: Enumerate the existing HNS layer before creating another. If another provisioning path already created the same layer, serialize ownership or reuse the correct object instead of treating the collision as generic host-network failure.
Looking for a different code? Search another status or error code.