MVC - latest version
We just upgraded to latest version v11.1 and using VS2022 latest. Can it be that it is nessesary to have Docker running in order to publish on Azure?
I get these errors: Error The "KillAppInsideContainer" task failed unexpectedly. Error Visual Studio container tools require Docker to be running. Visility.Web.Mvc
(Debug is fine)
Thanks
4 Answer(s)
-
0
Hi @visility
Do you have any error on your log file? If you have, can you please share the relevant part of the log file?
-
0
hi yes - please see this:
Build started... 1>------ Build started: Project: Visility.Core.Shared, Configuration: Release Any CPU ------ 2>------ Build started: Project: Visility.GraphQL, Configuration: Release Any CPU ------ 3>------ Build started: Project: Visility.Web.Mvc, Configuration: Release Any CPU ------ 3>Visility.Web.Mvc -> D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Web.Mvc\bin\Release\net6.0\Visility.Web.Mvc.dll 4>------ Publish started: Project: Visility.Web.Mvc, Configuration: Release Any CPU ------ Determining projects to restore... Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.EntityFrameworkCore\Visility.EntityFrameworkCore.csproj (in 2,26 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Core.Shared\Visility.Core.Shared.csproj (in 2,26 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.GraphQL\Visility.GraphQL.csproj (in 2,26 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Application\Visility.Application.csproj (in 2,26 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Core\Visility.Core.csproj (in 2,26 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Application.Shared\Visility.Application.Shared.csproj (in 2,26 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Application.Internal\Visility.Application.Internal.csproj (in 2,26 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Jobs\Visility.Jobs.csproj (in 2,7 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Web.Core\Visility.Web.Core.csproj (in 3,46 sec). Restored D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Web.Mvc\Visility.Web.Mvc.csproj (in 4,15 sec). C:\Users\visil.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.14.0\build\Container.targets(149,5): Error CTC1003: Visual Studio container tools require Docker to be running. C:\Users\visil.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.14.0\build\Container.targets(149,5): Error MSB4018: The "KillAppInsideContainer" task failed unexpectedly. System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Web.Mvc\obj\Container\ContainerToolsExceptions.json'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.OutputAndLogContainerToolsException(ContainerToolsException ex) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.<EvaluateBuildPrerequisitesAsync>d__27.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.<ExecuteAsync>d__26.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
4>Build failed. Check the Output window for more details. ========== Build: 3 succeeded, 0 failed, 7 up-to-date, 0 skipped ========== ========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
And in addtion the error list:'
Severity Code Description Project File Line Suppression State Error The "KillAppInsideContainer" task failed unexpectedly. System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\one\OneDrive\projects\Cloud\cloud\src\Visility.Web.Mvc\obj\Container\ContainerToolsExceptions.json'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.OutputAndLogContainerToolsException(ContainerToolsException ex) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.<EvaluateBuildPrerequisitesAsync>d__27.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.<ExecuteAsync>d__26.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Containers.Tools.Tasks.ContainerBuildTask.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Visility.Web.Mvc 0 Error Visual Studio container tools require Docker to be running. Visility.Web.Mvc 0
-
0
Hi,
Could you check if this solves your problem as well ? https://support.aspnetzero.com/QA/Questions/10965/Unable-to-published-after-updating-VS-2022-to-latest-version-1711#answer-9ade10ec-535d-f0bd-92d2-3a02cde34cc8
We will check this problem on the original codebase.
-
0
hi Thanks - removing microsoft.visualstudio.azure.containers.tools.targets package did the job kind regards, Thøger