Monday, 26 April 2010

An error occurred while validating. HRESULT = '80004005'

Visual Studio Setup projects are not great, and I personally have a number of issues with them - but, they do have their uses, and are a common tool in many .NET solutions.

Today I encountered the above error message while building my new Setup project. Now a quick google gives many answer to address this problem, but the gist of it is that your installer contains a Primary Output from another project, that has a Project Reference to one or more other projects. One of these projects being referenced is missing something, for example a file listed in the project is not located on your local disk, or one of the project references is no longer included in the solution.

However, in my case none of the answers I found helped. Then a colleague suggested cleaning the solution, and restarting VS - and that worked!

So I don't know what was the problem in my case, but if you've tried the common solutions you can find via Google and they haven't worked for you, you may as well try a clean and a restart!

Good luck!

No comments:

Post a Comment