An error occurred while validating hresult 80040155
If you face the error message “An error occurred while validating.
HRESULT = '8000000A'” while building Visual Studio setup project from command line in Visual Studio 2012 or above IDE environment, the reason is because the new IDEs do not support build outside the own process.
But there is a tweak which will help you to enable the same and you will now be allowed to build the MSI setup project from the command line itself.
The solution towards “An error occurred while validating.
i have created a windows service in visual studio c#,and i am trying to create a set up and deployment for the service, when i am buiding the windows service project ,it is successful i have added the Project Output Group as Primary Output with windows service project.
If you are using Visual Studio 2015, then the registry key that you have to navigate to is “HKEY_CURRENT_USER\SOFTWARE\Microsoft\Visual Studio.0_Config\MSBuild”. Don’t forget to read my other posts by the time I write and publish a new post. If you have come this far, it means that you liked what you are reading.
HRESULT = '8000000A'” error message is very simple.
It’s just a registry tweak that you have to perform as a workaround.
------ Starting pre-build validation for project 'Win Booky Install' ------ ERROR: An error occurred while validating.
HRESULT = '80040155' ------ Pre-build validation for project 'Win Booky Install' completed ------ .
HRESULT = '8001010E' Various posts suggested to remove all dependencies but in my case it was caused by an invalid reference to the framework.