如何解决ASPNETCOMPILER0,0:ASPRUNTIME错误:未将对象引用设置为对象的实例
我正在尝试编译使用VS2019开发的解决方案,但是在过程结束时,出现以下错误: ASPNETCOMPILER(0,0):ASPRUNTIME错误:未将对象引用设置为对象的实例。
我试图:
- 删除bin文件夹中的所有* .refresh文件。
- 以管理员身份执行VS2019。
- 安装并执行“ Clear MEF ComponentsCaché”插件。
- 更改了“组合选项”。
- 已删除临时文件夹中的旧文件。
日志文件显示以下代码:
10/09/2020 15:08:22
System.AggregateException: One or more errors occurred. ---> System.Exception: Compilation error. Check the output window for more details.
--- End of inner exception stack trace ---
is System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions)
is System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout,CancellationToken cancellationToken)
is Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish. <> c__DisplayClass43_0. <PublishAsync> b__3 ()
is System.Threading.Tasks.Task`1.InnerInvoke ()
is System.Threading.Tasks.Task.Execute ()
--- End of stack trace from previous location where exception occurred ---
is System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (task)
is System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task Task)
is Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel. <RunPublishTaskAsync> d__213.MoveNext ()
---> (Internal exception no. 0) System.Exception: Compilation error. Check the output window for more details. <---
System.Exception: Compilation error. Check the output window for more details.
===================
但是这些选项对我都不起作用。有人可以帮我吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。