Answered by:
Automated Build fails due to :MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: Task 'ValidateAppxManifest' failed.

Question
-
Using Visual Studio 2012 RC, TFS and build controller are also VS 2012 RC
I'm building a Javascript application for Metro. And it builds with no issue in Visual Studio.
When I create a Build Definition in VS and run it.
I get the following errors being reported in my build log file.
Any pointers would be great - Larry
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: Task 'ValidateAppxManifest' failed. Retrieving the COM class factory for component with CLSID {5842A140-FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: at Microsoft.Build.AppxPackage.ValidateAppxManifest.SemanticValidation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: at Microsoft.Build.AppxPackage.ValidateAppxManifest.ExecuteImplementation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: at Microsoft.Build.AppxPackage.AppxPackagingTaskHelper.Execute() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: The "ValidateAppxManifest" task failed unexpectedly. [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {5842A140-FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.AppxPackage.ValidateAppxManifest.SemanticValidation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.AppxPackage.ValidateAppxManifest.ExecuteImplementation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.AppxPackage.AppxPackagingTaskHelper.Execute() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj]
2>Done Building Project "C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo\Hilo.jsproj" (default targets) -- FAILED.
3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: Task 'ValidateAppxManifest' failed. Retrieving the COM class factory for component with CLSID {5842A140-FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: at Microsoft.Build.AppxPackage.ValidateAppxManifest.SemanticValidation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: at Microsoft.Build.AppxPackage.ValidateAppxManifest.ExecuteImplementation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error APPX0002: at Microsoft.Build.AppxPackage.AppxPackagingTaskHelper.Execute() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: The "ValidateAppxManifest" task failed unexpectedly. [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {5842A140-FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.AppxPackage.ValidateAppxManifest.SemanticValidation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.AppxPackage.ValidateAppxManifest.ExecuteImplementation() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.AppxPackage.AppxPackagingTaskHelper.Execute() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(841,9): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() [C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj]
3>Done Building Project "C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.Specifications\Hilo.Specifications.jsproj" (default targets) -- FAILED.
1>Done Building Project "C:\Builds\10\HiloJavascript\HiloJavascript CI\Sources\Source\Hilo.js.sln" (default targets) -- FAILED.
larry brader
Thursday, July 12, 2012 12:34 AM
Answers
-
Hi,
It seems the issue is more related to use TFS to build Metro apps. I am not very familiar with TFS, you can also post a thread on the TFS build forum: http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/threads to see whether the experts there can provide a solution.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework- Marked as answer by MingXu-MSFTMicrosoft employee, Moderator Tuesday, July 17, 2012 3:58 AM
Thursday, July 12, 2012 10:53 AMModerator -
Hi Ming,
In going through the forums I found this thread with the same issue.
http://social.msdn.microsoft.com/Forums/en-US/TFService/thread/740d5511-3217-4902-94b3-b857de2cc382/
The short answer is that my Build Controler is running the OS 2K8 R2 and according to the above thread. I can only build on Windows 8 machines.
Larry
larry brader
- Marked as answer by MingXu-MSFTMicrosoft employee, Moderator Tuesday, July 17, 2012 3:58 AM
Thursday, July 12, 2012 5:57 PM
All replies
-
Hi,
It seems the issue is more related to use TFS to build Metro apps. I am not very familiar with TFS, you can also post a thread on the TFS build forum: http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/threads to see whether the experts there can provide a solution.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework- Marked as answer by MingXu-MSFTMicrosoft employee, Moderator Tuesday, July 17, 2012 3:58 AM
Thursday, July 12, 2012 10:53 AMModerator -
Hi Ming,
In going through the forums I found this thread with the same issue.
http://social.msdn.microsoft.com/Forums/en-US/TFService/thread/740d5511-3217-4902-94b3-b857de2cc382/
The short answer is that my Build Controler is running the OS 2K8 R2 and according to the above thread. I can only build on Windows 8 machines.
Larry
larry brader
- Marked as answer by MingXu-MSFTMicrosoft employee, Moderator Tuesday, July 17, 2012 3:58 AM
Thursday, July 12, 2012 5:57 PM -
Hi,
I'm glad to hear that you resolve this issue.
Thank you for sharing your solutions and experience here. It will be very beneficial for other community members who have similar questions.If you have any difficulty in future programming, we welcome you to post a thread in forums again.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code FrameworkTuesday, July 17, 2012 3:58 AMModerator