My team and I get this error often but random and we're not sure why it does this. To get around it we either build the solution a couple of times of have to restart Visual Studio (10). Here's the error i have when i try to build :
Error 5 The "GenerateApplicationManifest" task failed unexpectedly. System.Runtime.InteropServices.COMException (0x8731F230): Exception from HRESULT: 0x8731F230 at System.Runtime.InteropServices.UCOMITypeInfo.ReleaseTypeAttr(IntPtr pTypeAttr) at Microsoft.Build.Tasks.Deployment.ManifestUtilities.ComImporter..ctor(String path, OutputMessageCollection outputMessages, String outputDisplayName) at Microsoft.Build.Tasks.Deployment.ManifestUtilities.FileReference.ImportComComponent(String path, OutputMessageCollection outputMessages, String outputDisplayName) at Microsoft.Build.Tasks.GenerateApplicationManifest.AddIsolatedComReferences(ApplicationManifest manifest) at Microsoft.Build.Tasks.GenerateApplicationManifest.BuildApplicationManifest(ApplicationManifest manifest) at Microsoft.Build.Tasks.GenerateApplicationManifest.OnManifestLoaded(Manifest manifest) at Microsoft.Build.Tasks.GenerateManifestBase.BuildManifest() at Microsoft.Build.Tasks.GenerateManifestBase.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
Thanks for your help!
I had run into a similar issue and found that it was because one of my assembly's path was too long. I don't really understand why in some cases it may work for you, and in others it doesn't though, so it may be something else, but never hurts to check it out.
I believe the maximum length is 260 characters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With