question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The "CreateAppHost" task failed unexpectedly. (Version 16.4.5)

See original GitHub issue

Hi,

Microsoft Visual Studio Community 2019 Version 16.4.5 Randomly getting the bellow error. I have added my root folder to the antivirus exclusion list.

Error	MSB4018	The "CreateAppHost" task failed unexpectedly.
Microsoft.NET.HostModel.HResultException: 8007006E
   at Microsoft.NET.HostModel.ResourceUpdater.Update()
   at Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.<CreateAppHost>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.<ExecuteInstantiatedTask>d__26.MoveNext()	EyezServices.Client	C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets	393	

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:41 (5 by maintainers)

github_iconTop GitHub Comments

19reactions
avifatalcommented, Apr 23, 2020

This is a nightmare… nothing helps

6reactions
dinispeixotocommented, Sep 30, 2020

Closing VS Code (running on WSL) solved the issue for me. Also worth mentioning that both VS and VS Code were using the same working dir

Read more comments on GitHub >

github_iconTop Results From Across the Web

The CreateAppHost task failed unexpectedly. MSB4018
This was caused by using VSCode as admin. Apparently after I build solution with VSCode as admin, some gets messed up resulting with...
Read more >
The CreateAppHostTask failed unexpectedly
For a while now, I have been receiving an error “The “CreateAppHost” task failed unexpectedly. System.IO.IOException: The process cannot ...
Read more >
MSB4018: The task failed unexpectedly - Microsoft Q&A
Error MSB4018 The "CreateAppHost" task failed unexpectedly. System.AggregateException: One or more errors occurred. ---> System.
Read more >
Project cant be builded
Hello, i cant build my c# winforms project. it shows this error: Error MSB4018 the "CreateAppHost" task failed unexpectedly. Microsoft.NET.
Read more >
MSBuild forum - RSSing.com
Error MSB4018 The "CreateAppHost" task failed unexpectedly. Microsoft.NET.HostModel.HResultException: 80070013 at Microsoft.NET.HostModel.AppHost.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found