发布到 SmarterASP.net 时构建失败

Build Failing when Publishing to SmarterASP.net

我刚才能够发布我的网络应用程序,现在我又回来了。我做了一些更改,但现在不完全确定是什么,而且它一直在失败。它在日志文件中给了我这个:

2020 年 5 月 4 日 5:34:53 下午 System.AggregateException: 发生一个或多个错误。 ---> System.Exception:构建失败。检查输出 window 了解更多详细信息。 --- 内部异常堆栈跟踪结束 --- 在 System.Threading.Tasks.Task.ThrowIfExceptional(布尔值 includeTaskCanceledExceptions) 在 System.Threading.Tasks.Task.Wait(Int32 毫秒超时,CancellationToken cancellationToken) 在 Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.b__3() 在 System.Threading.Tasks.Task`1.InnerInvoke() 在 System.Threading.Tasks.Task.Execute() --- 从抛出异常的先前位置开始的堆栈跟踪结束 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d__213.MoveNext() --->(内部异常 #0)System.Exception:构建失败。检查输出 window 了解更多详细信息。<---

System.Exception: 构建失败。检查输出 window 了解更多详细信息。

===================

并且在输出 window 中,它只是说尝试删除文件失败。我试过通过删除所有内容和不删除所有内容来发布,但都以同样的方式失败。

我可以在本地构建。

SmarterASP.net 证书经常有问题,您必须重新接受它。

Note:If you get certificate error with publish,please add below code to your PublishProfiles.

<AllowUntrustedCertificate>True</AllowUntrustedCertificate>