How to fix Error 3261 on Windows Server 2025 / Windows 11

Troubleshooting Guide: SQL Server Error 3261 — “Cannot Use the Virtual Device Configuration”

Why This Error Happens

Error 3261 typically occurs when SQL Server’s backup or restore operation fails to communicate properly with the Virtual Device Interface (VDI), often due to a mismatched or corrupted VDI configuration string passed by the backup application. This can also result from insufficient permissions on the SQL Server service account to access the shared memory or named pipes used by the Virtual Backup Device, or from a conflict caused by an outdated/incompatible VDI DLL (sqlvdi.dll) version. Additionally, third-party backup tools that fail to release virtual device handles properly can leave orphaned VDI sessions that block new configurations.

Step-by-Step Resolution Guide

Step 1: Verify and Repair the VDI Component Registration

  • Navigate to C:\Program Files\Microsoft SQL Server\160\Shared\ (adjust version path for SQL Server 2025 build) and confirm sqlvdi.dll exists.
  • Re-register the DLL using an elevated Command Prompt: regsvr32 "C:\Program Files\Microsoft SQL Server\160\Shared\sqlvdi.dll".
  • Restart the SQL Server (MSSQLSERVER) service via services.msc after registration completes.

Step 2: Check and Correct Service Account Permissions

  • Open Component Services (dcomcnfg.exe) and navigate to Component Services > Computers > My Computer > DCOM Config.
  • Locate the SQL Server VDI entry and ensure the SQL Server service account has Local Launch and Local Activation permissions.
  • Confirm the account also has Full Control on C:\Windows\Temp since VDI uses this path for shared memory mapping files.

Step 3: Terminate Orphaned VDI Sessions and Processes

  • Open Task Manager or PowerShell and check for hung sqlservr.exe or third-party backup agent processes (e.g., Veeam, NetBackup, CommVault agents).
  • Run Get-Process | Where-Object {$_.Name -like "*vdi*"} in PowerShell to identify lingering virtual device handles.
  • Kill any stuck processes and retry the backup/restore operation immediately afterward, as VDI sessions are time-sensitive.

Step 4: Update SQL Server and Backup Software Compatibility

  • Apply the latest Cumulative Update (CU) for SQL Server 2025 from the Microsoft Update Catalog, as early builds may have known VDI handshake bugs.
  • Verify your third-party backup software (if used) explicitly lists compatibility with SQL Server 2025 and Windows Server 2025/Windows 11.
  • If using Native SQL Backup, test without third-party tools to isolate whether the issue is software-specific.

Alternative or Verification Steps

  • Run a manual native backup via T-SQL (BACKUP DATABASE [YourDB] TO DISK = 'C:\Backup\test.bak') to confirm Error 3261 no longer appears outside of third-party tools.
  • If the error persists, check the Windows Event Viewer (Application log) for correlating VSS or VDI timeout errors, and consider increasing the VDI timeout value in your backup software’s advanced configuration settings.