Solution: An error occurred while validating. HRESULT = '8000000A'


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.

 

Solution: An error occurred while validating. HRESULT = '8000000A' (www.kunal-chowdhury.com)

 

The solution towards “An error occurred while validating. HRESULT = '8000000A'” error message is very simple. It’s just a registry tweak that you have to perform as a workaround.

 

For this to work, open your Windows Registry with administrative privilege and navigate to the following registry key path: “HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\11.0_Config\MSBuild” for Visual Studio 2012 IDE or, to the registry path “HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\12.0_Config\MSBuild” for the Visual Studio 2013. If you are using Visual Studio 2015, then the registry key that you have to navigate to is “HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\MSBuild”.

 

Registry entry to enable out of proc build in Visual Studio (www.kunal-chowdhury.com)

 

In that path, create a DWORD key with the name “EnableOutOfProcBuild” and set it’s value to “0” (zero). Now restart the build process from the command line and everything will be working as you expected.

 

Hope this small Tips & Tricks was helpful. Do let me know, if this helped you. Stay tuned to my blog for new articles, tips. Don’t forget to read my other posts by the time I write and publish a new post. Have a great day ahead!

 

 


If you have come this far, it means that you liked what you are reading. Why not reach little more and connect with me directly on Twitter, Facebook, Google+ and LinkedIn. I would love to hear your thoughts and opinions on my articles directly. Also, don't forget to share your views and/or feedback in the comment section below.

4 comments

  1. Hi Kunal,
    I am creating a build using TFS 2015 in which I want to create .msi using a command. After changing the registry key, it works in direct command but it still does not work through the TFS build.
    Subodh Sohoni

    ReplyDelete
    Replies
    1. Hello Subodh sir,

      Not sure about this. Might be, you have to check in TFS build configuration. Are you getting any error? Could you please share me the error message? Then I can investigate it.

      Kind Regards,
      Kunal Chowdhury

      Delete
  2. Hi Kunal,

    I hat exact the same issue here. But now this setting disappear in random intervals! I have to set this setting again and everythings works again. Did you have maybe the same Problem? What could be reason for this effect? Why are the registry settings disappear?

    ReplyDelete
    Replies
    1. Hi Pow-Lee,

      This might be due to system policy which is resetting your registry changes. Please contact your system administrator to resolve this issue.

      Regards,
      Kunal

      Delete

 
© 2008-2016 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top