I have a .NET Core 2.1 App that I want to publish on IIS8 via WebDeploy. When I publish, this is the error I get:
Severity Code Description Project File Line Suppression State Error Web deployment task failed. ((1/15/2019 2:18:40 PM) An error occurred when the request was processed on the remote computer.)
(1/15/2019 2:18:40 PM) An error occurred when the request was processed on the remote computer. The server experienced an issue processing the request. Contact the server administrator for more information. ManagementStudio C:\Program Files\dotnet\sdk\2.1.503\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets 139
I tried looking around and found this in the temp file
1/15/2019 3:01:59 PM 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.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.b__2() 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.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.d__127.MoveNext() ---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for more details.<---
===================
I'm not sure what I'm doing wrong? I can run it locally but am I missing something? I've looked around and it seems like this error doesn't happen often?