I have built a web project in VS 2019, worked a lot witout problems on that (Asp.Net Core 5.0) Web App and suddenly it started to appear an error on that Web Project:
Error MSB4018
The "CreateAppHost" task failed unexpectedly. Microsoft.NET.HostModel.HResultException: 800703EE at Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.g__UpdateResources|1() at Microsoft.NET.HostModel.RetryUtil.RetryOnWin32Error(Action func) at Microsoft.NET.HostModel.AppHost.HostWriter.CreateAppHost(String appHostSourceFilePath, String appHostDestinationFilePath, String appBinaryFilePath, Boolean windowsGraphicalUserInterface, String assemblyToCopyResorcesFrom) at Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore() at Microsoft.NET.Build.Tasks.TaskBase.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() MyApp.Web C:Program Filesdotnetsdk5.0.102SdksMicrosoft.NET.SdkargetsMicrosoft.NET.Sdk.targets 460
Config details here.
I restarted the computer, I run VS in admin mode, nothing helps to get rid of this error.
The Eset antivirus detected in the
myappobjdebug.net5.0apphost.exe
a "danger" and blocked it for an unknown reason. The compilation was impossible.
2.1m questions
2.1m answers
60 comments
57.0k users