Docker .NetCore app running in a container runs fine in Visual Studio. When I try to publish to Docker Hub, it returns an “unknown” error (log below).
The profile is set to my user and pw (for Docker Hub). When viewing in VS, on the Publish screen there is a url to the base Docker Hub directory. Clicking on it returns a “not found” error from Docker Hub. Any ideas on what would cause this? I did check to make sure I was logged in with Docker Desktop, if that matters.
From VS:
Publish has encountered an error.
Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
Log: at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d__213.MoveNext()
---> (Inner Exception #0) System.Exception: Publish has encountered an error. We were unable to determine the cause of the error. Check the
output log for more details. <---
System.Exception: Publish has encountered an error. We were unable to
determine the cause of the error. Check the output log for more
details.
===================
Related
I get below error when I try to publish DotNet 3.1 web app via Visual Studio 2019 to ACR.
I followed this link's instructions to publish but instead of creating new one, I selected existing ACR from list. I also looked in Visual studio to set ACR credentials with any special switches shown in the error, but could not find it.
My Docker Desktop is of version - 2.5.0.1 and VS version is - 16.7.6
Getting below error:
Publish has encountered an error.
Running the docker.exe login command failed.
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
A diagnostic log has been written to the following location:
C:\Users\Admin\AppData\Local\Temp\tmp2719.tmp
Below is full stack trace file which was provided by Visual Studio after failing:
26-11-2020 08:40:30 PM
Microsoft.WebTools.Azure.Publish.Docker.DockerCommandException:
Running the docker.exe login command failed.
WARNING! Using --password via the CLI is insecure. Use
--password-stdin. at Microsoft.WebTools.Azure.Publish.Docker.DockerOperations.ThrowDockerCommandError(String
dockerCommand) at
Microsoft.WebTools.Azure.Publish.Docker.DockerOperations.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.WebTools.Azure.Publish.Docker.DockerPublish.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.WebTools.Azure.Publish.ContainerRegistry.ManageContainerRegistry.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.WebTools.Azure.Publish.PublishProviders.ContainerRegistryProfileVisual.d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d__180.MoveNext()
According to the message you provided, it shows the docker login failed. As I know when you log in to the Visual Studio, then you can select the Docker support and publish the image to the existing Azure Container Registry if you have the permission to control the ACR. There is no option to set the credential for the ACR. But it gives the login failed error. So the possible reason is that your existing ACR does not enable the admin user. Try to enable the admin user for the ACR and then try to publish again.
This question already has an answer here:
WebDeploy not listening on port 8172
(1 answer)
Closed 2 years ago.
Web deploy has been working fine for me via Microsoft Visual Studio Enterprise 2019. Yesterday, it failed. I've made no changes to the server, although Windows Updates are on
4>MSDEPLOY(0,0): Error : (04/03/2020 18:45:08) An error occurred when the request was processed on the remote computer.
4>MSDEPLOY(0,0): Error : The server experienced an issue processing the request. Contact the server administrator for more information.
4>MSDEPLOY(0,0): Error count: 1.
I tried to FTP my site, which connects fine.
I turned off the firewall on my VPS, and the same error message is shown.
The website builds fine locally.
The .tmp file shows the following stack
04/03/2020 18:09:20
System.AggregateException: One or more errors occurred. ---> System.Exception: Build failed. Check the Output window for more details.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.<PublishAsync>b__3()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__213.MoveNext()
---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for more details.<---
System.Exception: Build failed. Check the Output window for more details.
I don't know how to debug this further
I am clueless as to why but, it seems the fix was simply to accept connections in the firewall on Port 8172
I'm trying to stop the app pool of a website by connecting to it remotely with TFS Step.
The step seems to be configured properly. The Deploy step works but the IIS Management doesn't
This is the Manage IISwebsite step:
In the log i'm getting an error with not so much feedback. I find nothing on the internet either
This is the log error Microsoft.PowerShell.Commands.WriteErrorException: Caught exception while executing main function: The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Is there any way to do that, or by powershell script that i can run in a powershell task?
The parameter which was null was the adminPassword variable. No details were displayed, needed to debug the actual script of the TFS.
Have TFS installer on the server, unfortunately, we could not use the standard port 8080 used for a lot of communication. In the TFS Admin Console, have changed the URLs to 8087 in the following areas...
Application Tier using "Change URLs"
Application Tier / Team Project Collections - changed URL
Build Configuration - Build Services for collection
In IIS, changed port 8080 for "tfs" web app
When in the Team Foundation Server Explorer and start a build, I get the following error at the start, I believe it is attempting to retrieve the source.
F215097: An error occurred while initializing a build for build definition \Liberty-test\TFS-test:
Exception Message: One or more errors occurred. (type AggregateException)
Exception Stack Trace: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection, String itemPath)
followed by last inner exception...
Exception Message: No connection could be made because the target machine actively refused it 172.28.20.207:8080 (type SocketException)
Exception Stack Trace: at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
Notice the IP:8080 used when I suppose trying to retrieve the sources, e.g. 172.28.20.207:8080
It is still 8080, trying to determine where this IP/port comes from and how I can set it to 8087.
i make simple application to sending email to my localhost.
in windows 7, my application can run correctly, but when i try to debug and running in windows 8, my application give me some error like this
Access to the path 'C:\604ea33a-0b6c-4b47-8e4e-5ff9ff3c35a8.eml' is denied.
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
can some one tell me, whats wrong with my code?
thanks
I Change my path directory to C:/Windows/Temp
and run correctly in windows 8
You must be getting UnauthorizedAccessException .The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.
It is clearly a permission issue.
In case of Vista/Windows 7/8, C:\ drive is considered as system drive, and need administrator privileges for your process in order to create files directly under it.
Try running your process with administrator or Run Visual Studio as Administrator, and it should work.