Cisco Secure Client (AnyConnect) Won’t Connect: Fixes (2027)
Quick answer
- Disconnect any Remote Desktop session, turn off Fast User Switching, and make sure TCP 443 and UDP 443 are not blocked on your network.
- If you see “Unable to Proceed, Cannot Connect to the VPN Service”, open Windows Services, start the Cisco Secure Client VPN Agent service, then turn off conflicting VPN, intrusion-detection and antivirus software and restart.
- Many errors come from the VPN server, so collect a DART bundle (gear icon, then Diagnostics) and send it to your IT team.
Applies to: Cisco Secure Client (including AnyConnect) 5.1 on Windows, with notes for macOS and Linux
Cisco Secure Client, the new name for AnyConnect, fails to connect when something on your PC, your network or the VPN server stops the tunnel from starting.
Cisco’s own troubleshooting guide lists the causes, and a few of them are fixable from your side.
The rest need your IT team, so this guide separates the two and shows how to collect the files they ask for.
Table of Contents
- Quick answer: what to try first
- What the connection error usually means
- Check the basics first
- Fix “Cannot Connect to the VPN Service”
- Fix “The VPN client driver has encountered an error”
- Fix “An internal error occurred in the Microsoft Windows HTTP Services”
- Fix “Module failed to register” during install
- Messages only your IT team can fix
- How to collect a DART bundle
- Export your connection statistics
- If Remote Desktop is the reason
- Official sources
Quick answer: what to try first
| What you see | Cause Cisco gives | What you can do |
|---|---|---|
| Message about a single local user | Remote Desktop or Fast User Switching is in use | Disconnect RDP sessions and disable Fast User Switching |
| Nothing connects | TCP 443 or UDP 443 (DTLS) blocked | Use a network that allows both, or ask IT |
| Unable to Proceed, Cannot Connect to the VPN Service | VPN Agent service not running, or conflicting software | Start the service, remove conflicts, restart |
| The VPN client driver has encountered an error | Virtual adapter failure, RRAS conflict or a Windows Update | Disable RRAS, repair the driver database |
| An internal error occurred in the Microsoft Windows HTTP Services | Likely corrupted Winsock state | Run netsh winsock reset and restart |
| Login or certificate messages | Server or profile settings | Send IT a DART bundle |
What the connection error usually means
Cisco’s guide does not list the exact line “The VPN client failed to establish a connection”, so it is best read as a general failure to build the tunnel.
Cisco says to collect data before changing anything, because its support team normally asks for a DART bundle first.
If your employer or school runs the VPN, the server-side settings are theirs, and nothing on this page lets you get around those controls.
Check the basics first
- Close any Remote Desktop session, because multiple simultaneous local users are not supported for VPN establishment.
- Turn off Fast User Switching for the same reason.
- Make sure TCP 443 and UDP 443 are not blocked, since the client uses both.
- Check that your client version is one your organization’s gateway supports, because Cisco says an unsupported version can cause an installer or access error.
Fix “Cannot Connect to the VPN Service”
- Open Windows Administration Tools and look at the Cisco Secure Client VPN Agent service.
- Start the service manually if it is not running.
- Open Event Viewer and check the Cisco Secure Client, System and Application logs for the reason.
- Disable conflicting software, such as other VPN products, host intrusion-detection tools and antivirus, then restart Windows.
Cisco gives the same fix for the message “VPN Agent Service has encountered a problem and needs to close”: restart the Cisco Secure Client – AnyConnect VPN Agent service in Windows Services, or repair or reinstall the client.
Fix “The VPN client driver has encountered an error”
This points to a failed virtual adapter, a conflict with the Routing and Remote Access Service (RRAS), or a driver problem that appears after a Windows Update.
- Disable RRAS before starting Cisco Secure Client.
- Open an elevated Command Prompt.
- Stop the cryptographic service.
This stops the service that holds the driver catalog database.
This checks the health of that database, and Cisco’s repair option uses /p in place of /g.
Choose OK when asked to repair, then restart the PC.
If the repair fails, Cisco says to run net stop CryptSvc again, rename the folder %WINDIR%\system32\catroot2 to catroot2_old, and restart.
Fix “An internal error occurred in the Microsoft Windows HTTP Services”
When the DART log shows HttpSendRequest failures, Cisco says the likely cause is a corrupted Winsock state.
Run it in an elevated Command Prompt, then restart Windows, and see our guide on the netsh winsock reset command for what it changes.
Fix “Module failed to register” during install
Cisco says to temporarily remove conflicting VMware virtual network adapters, reinstall the client, then restore them.
From C:\Program Files\Cisco\Cisco Secure Client, run this in an elevated window:
This re-registers the client library, and Cisco says to do the same for vpncommon.dll and vpncommoncrypt.dll if they are present.
Messages only your IT team can fix
| Message | Cisco’s cause or fix |
|---|---|
| User not authorized for AnyConnect Client access | The client image is often missing on the VPN server |
| The secure gateway has rejected the agent’s vpn connect or reconnect request | No address assigned to the client, or no license |
| AnyConnect not enabled on VPN server | Remote access VPN is not configured on the headend |
| Login Denied, unauthorized connection mechanism | The authentication method does not match the connection profile |
| Certificate Validation Failure | Client or server certificate problem; the server certificate must match the name in the profile |
| The SSL transport received a Secure Channel Failure | TLS or cipher mismatch between client and server |
Copy the exact message and send it to your IT team with a DART bundle, because only they can change these settings.
How to collect a DART bundle
- Open Cisco Secure Client and click the gear icon.
- Click Diagnostics.
- Choose Default to save DARTBundle.zip to your desktop, or Custom to pick the files and location.
- Send the bundle to your support team.
On a Mac, choose Generate Diagnostic Report from the application menu, and note that macOS supports only the Default option.
If collection is slow, click Cancel, run DART again and choose Custom with fewer files.
Export your connection statistics
On Windows, click the gear icon, then Advanced Window, then Statistics, then the AnyConnect VPN drawer, and select Export Stats.
On a Mac, click the Statistics icon and select Export Stats, and on Linux use the Details button.
If the embedded browser sign-in misbehaves, go to Advanced Window, then General, then the Web Browser tab, and select Clear Data.
If Remote Desktop is the reason
If you reach your office PC through Remote Desktop and the VPN will not start on that PC, our guide to Remote Desktop not connecting on Windows 11 covers the other side of the connection.