Skip to content

Unable to start debugging on the web server #91

@nphmuller

Description

@nphmuller

This happens when I create a new ASP.NET Web Application in VS 15.6.4 with Docker Support enabled.

I get the following output when I start a debugging session (F5)

docker ps --filter "status=running" --filter "name=dockercompose8437191478683566452_webapplication5_" --format {{.ID}} -n 1
15fac122bde7
docker inspect --format="{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}" 15fac122bde7
172.20.184.210 
docker exec 15fac122bde7 cmd /c "C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.applicationHost/applicationPools /[name='DefaultAppPool'].processModel.identityType:LocalSystem /commit:apphost & C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/security/authentication/anonymousAuthentication /userName: /commit:apphost"
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
(At this point I sometimes get a dialog box with 'A remote operation is taking longer than expected.')
Applied configuration changes to section "system.webServer/security/authentication/anonymousAuthentication" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
(At this point I get a dialog box with: Unable to start debugging on the web server. The Visual Studio 2017 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging.)

docker version output:

Client:
 Version:       18.03.0-ce
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    0520e24
 Built: Wed Mar 21 23:06:28 2018
 OS/Arch:       windows/amd64
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:      18.03.0-ce
  API version:  1.37 (minimum version 1.24)
  Go version:   go1.9.4
  Git commit:   0520e24
  Built:        Wed Mar 21 23:21:06 2018
  OS/Arch:      windows/amd64
  Experimental: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleStale issues--reopen if desired

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions