I'm trying to compile my solution developed with VS2019, but at the end of the process I get the following error: ASPNETCOMPILER (0,0): ASPRUNTIME error: Object reference not set as an instance of an object.
I tried to:
- Remove all *.refresh files at bin folder.
- Execute VS2019 as Administrator.
- Installed and executed "Clear MEF Components Caché" plugin.
- Changed "combination options".
- Deleted old files at temp folder.
The log file displays the following code:
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.
===================
But nothing of these options worked for me. CAn someone help me?