Connection Status
X21 requires connections between multiple components. This guide helps troubleshoot connection problems.Connection Architecture
X21 uses this connection flow:Connection Indicators
Status Bar
In development mode, status bar shows: Connected (green dot):Error Messages
Cannot Connect:Checking Connections
1. Check Deno Server
Windows (PowerShell):- Start Deno server manually
- Check installation
- Review server logs
2. Check VSTO Add-in
Windows (PowerShell):- Check Excel add-ins list
- Enable X21 add-in
- Restart Excel
3. Check Task Pane
In Excel:- Look for X21 task pane
- Check for load errors
- Verify WebView2 is installed
Common Connection Issues
Cannot Connect to Deno Server
Symptoms:- Red connection indicator
- Error on sending messages
- Task pane loads but unresponsive
VSTO Connection Issues
Symptoms:- Tool operations fail
- Can’t read Excel data
- Workbook metadata missing
WebSocket Disconnections
Symptoms:- Connection drops during use
- Frequent reconnection prompts
- Streaming stops mid-response
Reconnection
Automatic Reconnection
X21 attempts automatic reconnection:- Connection lost detected
- Wait 2 seconds
- Attempt reconnect
- Retry up to 3 times
- Show manual reconnect button
Manual Reconnection
If automatic fails:- Click Reconnect button
- Wait for connection
- If fails, restart Excel
- Check server status
After Reconnection
- Previous conversation preserved
- Pending operations may need retry
- Token usage maintained
Troubleshooting Steps
Basic Troubleshooting
- Check status indicators
- Click Reconnect if available
- Restart Excel (clears state)
- Restart Deno server
- Check ports (8000, 8080)
- Review firewall settings
Advanced Troubleshooting
-
Check process list:
-
Review logs:
- Deno server logs
- Excel VSTO logs
- Browser console (F12 in task pane)
-
Test ports:
-
Network diagnostics:
- Ping localhost
- Check hosts file
- Disable IPv6 if issues
When All Else Fails
-
Complete restart:
- Close Excel
- Stop Deno server
- Wait 30 seconds
- Start Deno server
- Start Excel
-
Reinstall:
- Uninstall X21
- Clear data folders
- Reinstall fresh
- Verify all prerequisites
-
Contact support:
- Collect logs
- Document error messages
- List troubleshooting steps tried
- Email support
Prevention
Stable Connections
Best practices:- Keep Excel and Deno server running
- Stable network connection
- Don’t hibernate/sleep during use
- Adequate system resources
Configuration
Firewall rules:- Ensure Deno starts before Excel
- Check startup scripts run correctly
- Verify environment variables set
Related Topics
- Installation Methods - Initial setup
- Process Lifecycle - Component management
- Error Types - Connection error details
- Common Issues - General problems

