Troubleshooting & Operations of Winvoice Agent
This guide helps system administrators and IT personnel monitor, troubleshoot, and maintain the Winvoice Agent in production environments.
Checking Agent Connection Status
In the Winvoice Web Interface
- Log in to app.winvoice.se as an administrator.
- Navigate to Settings -> Integrations -> Winvoice Agent.
- Review the status box:
- Green Indicator (Online): The agent sends heartbeat signals and is active. The Last Contact timestamp updates every 60 seconds.
- Red Indicator (Offline): No contact has been recorded for over 15 minutes. Verify that the server is running and the service is active.
In Windows Services (services.msc)
- Press
Win + R, typeservices.msc, and press Enter. - Locate Winvoice Agent Service.
- Verify that the Status column displays Running and that Startup type is set to Automatic.
Logs & Diagnostics
Winvoice Agent logs all activity both in local text files and in the integrated Windows Event Log.
1. Local Log Files
The agent generates detailed rolling daily logs on the server:
- Path:
C:\ProgramData\Winvoice\Agent\logs\ - Log format:
agent-YYYY-MM-DD.log - This logs startup/shutdown events, synchronization intervals, number of exported invoices, and any stack traces in the event of errors.
2. Windows Event Log (Event Viewer)
Critical events are reported directly to the Windows Event Log:
- Open Event Viewer (
eventvwr.msc). - Navigate to Windows Logs -> Application.
- Filter by source: WinvoiceAgent.
Common Issues and Solutions
Issue 1: Status Displays "Offline" in Winvoice
- Cause: The service has stopped or the server lacks an internet connection.
- Resolution:
- Open PowerShell as an administrator and run:
Restart-Service WinvoiceAgent
- Check the internet connection and verify that outbound traffic to
api.winvoice.se:443is permitted in the firewall.
- Open PowerShell as an administrator and run:
Issue 2: File Sharing Error or Access Denied to Visma Directory
- Cause: The service account lacks read and write permissions to the Visma Administration network share.
- Resolution:
- By default, the service runs under the
Local Systemaccount. If the company directory resides on a network share (\\SERVER\share), change the service account inservices.mscto a dedicated domain or service account with full permissions to the folder. - Verify that no users have locked the database files in exclusive mode in Visma.
- By default, the service runs under the
Issue 3: Invalid or Expired Agent Token (HTTP 401)
- Cause: The API key has been revoked or deleted in the Winvoice web interface.
- Resolution:
- Create a new key under Settings -> Integrations -> Winvoice Agent.
- Update the configuration file
C:\ProgramData\Winvoice\Agent\appsettings.jsonwith the new key and restart the service.