You get "An error occurred while validating. HRESULT = '80004005'" error while building Setup Project(S) in Visual Studio 2008 where as project (A) included in the setup build successfully.
This error occures if something is wrong with references of the project(A)
Follow steps below to troubleshoot.
- If you have multiple project outputs in your solution, identify the project that is giving the problem. You can do that by removing one project at a time from the Setup Project(S) until error goes away.
- Once project is identified, identify the reference that could be giving the problem.
- Check if the project(A) is referencing to a project that has been removed from solution. - Remove such references if any.
- Check if the Project(A) is referencing to a project that was moved to a diffenrent physical location after it was added as a reference. - Remove and add such references.
- Rebuild setup project after fixing the reference accordingly to see if error goes away.
That was exactly what I needed - Thanks!
ReplyDeleteI've done all that, and even checked all the paths in the setup project by hand and still no joy.
ReplyDeleteI've got this problem too and I could not resolve it yet. I'm tying to deploy with a setup project an webApp project. This one is not referencing to a project that has been removed from solution, neither is referencing to a project that was moved to a diffenrent physical location after it was added as a reference. Besides, the dependencies folder of the setup project is Empty. Do you have any idea about what could be the problem?
ReplyDeleteB. Did you check the references in your WebApp project? I have noticed this to be an issue when the project that you are trying to deploy has referencing issues Vs any problems with actual setup project.
ReplyDeleteTry opening the webApp project in text editor like notepad and check paths of all referenced files to make sure they are right or anything else stands out.
if you have a problem between VS2010 and VS2008 then please refer below link and change the project version opening in external editor (notepad).
ReplyDeletehttp://social.msdn.microsoft.com/Forums/en-HK/vsdebug/thread/a548fb3e-b449-4630-bc8f-c7c8728e61cc