Setup Project Error: Unable to update the dependencies of the project
Posted by Clayton James on June 5, 2006
UPDATED POST: 14/07/2006
Martin Wills has sent me some information about this problem. It is my lucky day
- Microsoft do now have a hot-fix for this problem – see http://support.microsoft.com/kb/917036/en-usYou need to ask for the fix – they then give you a web-site and a password.The fix seems to be working for me. After clearing the Hierarchy and File sections as described here and re-adding the files, I’ve had no recurrence of the issue.
Great work Martin and thanks very much for helping out.
OLD POST
I have been working on some Setup projects in vs2005 recently (which was converted from vs2003) and I have been receiving an error “Unable to update the dependencies of the project” when assembly versions change. The (setup) .vdproj file stores the version numbers for assemblies that it references. This file doesn’t update itself with the new version numbers and also REFRESH DEPENDENCIES fails with “The operation can not be completed”. I finally found a msdn feedback articleThis article has a workaround article which basically states the following:
Workaround Description:
I have consistently used this method to get around this bug instead of rebuilding my setup projects. This applies to both merge module projects AND setup projects. Manually remove the data in the Hierarchy and Files section of the project files.
Workaround Steps:
1. Open .VDPROJ file
2. Find the “Hierarchy” section. Delete everything so the section looks like this:
“Hierarchy”
{
}
3. Find the “File” section. Delete everything so the section looks like this:
“File”
{
}
4. Reload the project
5. Rebuild the project.
This workaround removes all of the files associated with the project, therefore, they will have to be re-added. A real pain until this issue is fixed.
Martin Wills said
Microsft do now have a fix for this problem – see http://support.microsoft.com/kb/917036/en-us
You need to ask for the fix – they then give you a web-site and a password.
The fix seems to be working for me. After clearing the Hierarchy and File sections as described here and re-adding the files, I’ve had no recurrence of the issue.
CJ said
Today must be my lucky day. I jump online and I have some news (a comment from Martin) that I have been wanting to hear for quite sometime. There is a HOT-FIX! Yeah!
Great work Martin and thanks very much for helping out.
dd said
Deleting the Hierarchy and file sections worked for me. Waiting for microsoft to send the hot fix. BTW there is a service pack coming out the end of Q3
Andrew Bassett said
I found that the workaround listed above did not work. It caused my project to be unloadable.
CJ said
Andrew
You need to be very careful when deleting the characters inside the Hierarchy and File sections. This file is very strict in its structure and one out of place character will make the project unloadable.
Laurent said
Thank you !!!
I had to cope with that issue all this morning. Not only I have a workaroud, but I also learnt there is a hotfix for that.
Again, thanks !!!
Rob said
Why does Microsoft suck so badly at making installers? Have you ever used ClickOnce? The internal data store gets corrupted every other time a user tries to update their application!
Idetrorce said
very interesting, but I don’t agree with you
Idetrorce
sathya said
I got the same problem with VS 2003, version 7.1.3088,.NET Framework 1.1.4322 & SP1.
The issue is with multi monitor setup. I have dual monitor setup and when IDE is on secondary monitor i could not change project dependencies but i can do when IDE is on primary monitor. It’s weird… but works
rauland said
Worked for me, thanks!
TJ said
I ran into this issue on a project converted from VS 2008 to 2010.
I tried your method, but VS2010 said it couldn’t read the vdproj after the edit.
After tearing my hear out and looking around the internet, I tried various different things, here is what worked:
1) Right Click on the ‘Detected Dependencies’ folder
2) Click ‘Refresh Dependencies’
3) Build the project
This worked for me. Hope someone else finds this useful.