<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEVPNError-swift.struct/Code/configurationInvalid",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:@E@NEVPNError@NEVPNErrorConfigurationInvalid"
  },
  "title" : "NEVPNError.Code.configurationInvalid"
}
-->

# NEVPNError.Code.configurationInvalid

An error code indicating the VPN configuration associated with the VPN manager object is invalid.

```
case configurationInvalid
```

## Discussion

This error can occur in the following situations:

- The app or extension tried to save the configuration, but the configuration has missing or invalid configuration properties.
- The app or extension tried to use the configuration before being successfully saved to the Network Extension preferences.
- The app or extension tried to use the configuration before being successfully loaded from the Network Extension preferences.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)