Why do I get "An error occurred while validating. HRESULT = '80004005'" when building a setup project?

Martin Delille picture Martin Delille · Jun 12, 2009 · Viewed 39.2k times · Source

Why do I get the following error when building a setup project?

An error occurred while validating. HRESULT = '80004005'

Answer

thewpfguy picture thewpfguy · Mar 28, 2012

One project in solution had ToolsVersion="4.0" (in .csproj file), changed it to ToolsVersion="3.5" and setup project builds fine.