When attaching the debugger to a .NET Framework 4.x process (e.g. ASP.NET Web API running under IIS Express), the CLR attach fails with:
Failed command 'configurationDone' : 0x80070057
Environment:
- OS: Windows 10/11 (build [your build if known])
- Editor: Cursor [version] (or VS Code [version])
- Extension(s): C# (ms-dotnettools.csharp) [version], C# Dev Kit (ms-dotnettools.csdevkit) [version if installed]
App being debugged: .NET Framework 4.x (ASP.NET Web API on IIS Express).
launch.json attach configuration:
Using type: "clr", request: "attach", with either processName or processId:
{
"name": "Attach to IIS Express",
"type": "clr",
"request": "attach",
"processName": "iisexpress",
"cwd": "${workspaceFolder}",
"requireExactSource": false
}
Also occurs with configs that use processId (numeric or from an input like "${input:attachPid}").
Steps to reproduce:
- Open a .NET Framework solution in Cursor/VS Code.
- Start the app (e.g. IIS Express) so the process is running.
- Run and Debug → select the CLR attach config (e.g. "Attach to IIS Express") → F5.
- The error
Failed command 'configurationDone' : 0x80070057 appears and attach does not complete.
When attaching the debugger to a .NET Framework 4.x process (e.g. ASP.NET Web API running under IIS Express), the CLR attach fails with:
Environment:
App being debugged: .NET Framework 4.x (ASP.NET Web API on IIS Express).
launch.json attach configuration:
Using
type: "clr",request: "attach", with eitherprocessNameorprocessId:{ "name": "Attach to IIS Express", "type": "clr", "request": "attach", "processName": "iisexpress", "cwd": "${workspaceFolder}", "requireExactSource": false }Also occurs with configs that use
processId(numeric or from an input like"${input:attachPid}").Steps to reproduce:
Failed command 'configurationDone' : 0x80070057appears and attach does not complete.