I am using Visual Studio 2022 for testing remote. I downloaded one docker image (my_image) for windows and add it into my testEnvironments.json file. But i always received this following error after changing from to my_image:
Command error: Error response from daemon: invalid volume specification: 'c:\program files\microsoft visual studio\2022\enterprise\common7\ide\commonextensions\microsoft\testwindow\VsTest:/mnt/vstest/:ro'
Does any one know to solve this problem?
Thank you very much.
Related
On a Windows machine, I'm heavily using the "open folder in container" functionality of Visual Studio Code, with Docker managed by Rancher Desktop.
For this to work, I always run Visual Studio Code as administrator.
Since today, however, it doesn't work any more, and the "Docker returned an error code EACCES, message" is reported.
As a workaround, I changed the properties of
C:\Users\<userName>\AppData\Local\Programs\Rancher Desktop\resources\resources\win32\bin\Docker.exe
by unchecking the "Run this program as an administrator" checkbox:
This, however, seems to me not to be a good solution to the problem.
What is the proper way of fixing the issue?
I'm trying to attach a remote docker container from Visual Studio 2022, and I'm getting this error. The error says it is permission related but I can run that command via the terminal.
I guess Visual Studio tries to run that command with a different user.
Visual Studio runs on Windows 10
Docker container runs on Ubuntu (Azure VM)
I can be able to see running images on Linux from Visual Studio which means that I correctly set the configuration.
The error is;
Failed to launch debug adapter 'coreclr'.
Unable to find debugger script at '/home/devadmin/.vs-debugger'.
Initialization log:
Determining user folder on remote system...
Checking for existing installation of debugging tools...
Downloading debugger launcher...
Creating debugger installation folder: /home/devadmin/.vs-debugger
Failed: "Command 'mkdir -p '/home/devadmin/.vs-debugger'' failed with code '1'. "
Unable to find debugger script at '/home/devadmin/.vs-debugger'.
Failed: Unable to find debugger script at '/home/devadmin/.vs-debugger'.
The program '[1] CoreServer' has exited with code 4294967295 (0xffffffff).
I tried to attach remote Docker (Linux) process from Windows machine, and I got an error.
I am running Visual Studio 2019 on Windows 10. I have Docker Desktop running which is pointing to Windows containers. I am looking into publishing a ASP.Net Core 5.0 web application using Docker and I get the error
no matching manifest for windows/amd64 10.0.17134 in the manifest list entries
I am using the Dockerfile that Visual Studio creates. This file contains the line
FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base
I have tried changing to these tags but I still get the same error
FROM mcr.microsoft.com/dotnet/aspnet:3.1-nanoserver-1803 AS base
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
I don't have the ability to upgrade the Windows version I am using. Am I now unable to publish to Docker?
Recently I changed my password for TFS service and started facing below issue
Error encountered while fetching: Git failed with a fatal error.
Authentication failed for 'http://Path'.
- Worked fine with Visual Studio 2019 but failed with Visual Studio 2017
Things I tried to resolve this issue:
- Updated password in Credential Manager
- Clearing visual studio cache
Thanks for your help.
Update:
Instead of update password in Credential Manager try to remove it. When connect git in VS2017, you should be able to enter it again. More ways for troubleshooting, pleas take a look at weiwei's answer in this similar question Git failed with a fatal error.Authentication failed when clone repository from VS 2017
Besides, as a workaround, you could also try to use Personal Access Token and use that to connect directly. For details please refer https://stackoverflow.com/a/56028075/5391065
According to your description and situation, since it worked fine with VS2019 and not work with VS2017, this maybe with some Credential cache.
Make sure you have clean clear for the cache with Visual Studio 2017.
Besides, you could also try to run Visual Studio under sign-in credentials that are different from your signed-in Windows account, open the context menu for devenv.exe to access your run as options. If you don't see the run as option as shown in the following example, you may need to press SHIFT before right-clicking to see the run as options.
You can locate the executable in the following folder: *Drive*:\\Program Files (x86)\Microsoft Visual Studio xx.0\Common7\IDE\
Which may do the trick.
Close all Visual Studio instances.
Delete %LOCALAPPDATA%\.IdentityService.
If the issue still persist, call devenv /resetuserdata to clear user's data.
I am new to docker. I have VS 2017 community edition installed on my machine.
I have installed
Docker for windows
Docker tools for windows.
I created a new ASP Dot net core 2.0 Web API project with 'Enable Docker Support' option enabled.
I was able to build default project but when I start debugging it gave me below error. I can see new image is created using 'docker image list -a' command but VS is unable to start container.
Severity Code Description Project File Line Suppression State
Error Building webapplication9
Creating dockercompose4820272847090409016_webapplication9_1 ...
[1A[2K
Creating dockercompose4820272847090409016_webapplication9_1 ... [31merror[0m
[1B
ERROR: for dockercompose4820272847090409016_webapplication9_1 Cannot start service webapplication9: container be38d8f606526b8957cbce69c30a9cc329ee79e53f6b216e66d0cdc5895f4a14 encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"powershell -Command [System.Threading.Thread]::Sleep([System.Threading.Timeout]::Infinite)","User":"ContainerUser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_ENVIRONMENT":"Development","ASPNETCORE_PKG_VERSION":"2.0.3","ASPNETCORE_URLS":"http://+:80","DOTNET_USE_POLLING_FILE_WATCHER":"1","NUGET_FALLBACK_PACKAGES":"c:\\.nuget\\fallbackpackages","NUGET_PACKAGES":"C:\\.nuget\\packages"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
ERROR: for webapplication9 Cannot start service webapplication9: container be38d8f606526b8957cbce69c30a9cc329ee79e53f6b216e66d0cdc5895f4a14 encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"powershell -Command [System.Threading.Thread]::Sleep([System.Threading.Timeout]::Infinite)","User":"ContainerUser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_ENVIRONMENT":"Development","ASPNETCORE_PKG_VERSION":"2.0.3","ASPNETCORE_URLS":"http://+:80","DOTNET_USE_POLLING_FILE_WATCHER":"1","NUGET_FALLBACK_PACKAGES":"c:\\.nuget\\fallbackpackages","NUGET_PACKAGES":"C:\\.nuget\\packages"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
Encountered errors while bringing up the project..
For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 346
Am I missing any pre-requisite ?