Problem adding files to deployment project.  
Author Message
Jesse Hose





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

I am having problems adding text files (xml) to a deployment project. I check out the deployment project and try to add a file (from both the File System View and the Solution Explorer). I select the desired file from the Add File dialog and click Open. The Add File dialog closes and nothing happens. In the past I found when I observed this behavior I had to make sure the file I was trying to add was writable so I would check it out from the source control (I am using ClearCase) and I would be able to add the file. Now this doesn't seem to make a difference, no matter what I do, the Add File dialog closes and nothing happens. I have not seen any sort of error message anywhere obvious. I can add project outputs, but not files. Has anyone seen this before

Windows Forms26  
 
 
Darius R





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

I'm having this same issue along with another member of my team, what is the cause of this or how can I fix it It was working fine until yesterday, the only thing i did was install the prereq update for Web Application Projects, I've since uninstalled both and still get this error. The other member of my team has the same issue but didn't install either of those items. I've tried creating a whole new project but cannot add files at all.
 
 
David Guyer MS





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

This doesn't sound familiar... what is the extension of the files you are trying to add



 
 
Darius R





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

Any types really, mostly Assemblies, DLL's, but also even just simple old text files.
 
 
David Guyer MS





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

Interesting. Based on the "Web Application Project" thingy you installed, can you try to "Repair" your Visual Studio install That might fix whatever is out of whack.



 
 
Lowell M





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

I am experiencing the same problem. Is this something that's wrong with VS 2005
 
 
Dmitry G.





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

I have the same problem. Quite interesting. Spend half a day - no solution.

Before I was teaching students how to create setup projects, now ... OK, now I can't do that myself ( I mean add ANY files).

I'm working with Visual Studion Team Foundation Server. Does anybody knows what's going on



 
 
Lowell M





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

From what I can determine this is a bug in VS2005, and shutting down and restarting VS2005 often fixes it.

I WAS able to get it to work at a later date, after I had closed and restarted VS2005.

It was a couple days later when I tried it again and it worked, so I may have even restarted the entire machine since the time when it wasn't working.


 
 
Matt Brunell





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

I had the same problem. For me, neither a reboot, nor a restart would fix the problem. I also tried to do a repair to the installation, and that failed to fix the problem.

Finally, I had to uninstall and then reinstall. The problem was fixed after that.


 
 
Jay McG





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

I too am seeing this problem. I have tried, fixing the install, uninstalling, reinstalling, rebooting etc. The problem started when I uninstalled VS 2005 professional and installed VS 2005 Team for Developers. Can anyone offer any clues as to what is happening or how to debug this issue

Thanks

Jay


 
 
Jay McG





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

Ok so this is wierd. In an effort to figure out what's wrong I was looking at the vdproj file(in notepad) of my deployment project and noticed that my file wasn't there. So I started playing with adding/removing different things. I opened the file system view and when I added a shortcut to a file I saw it add.. I deleted it, and then noticed that the original file I was trying to add appeared. Now things are working. How bizarre is that :P (I hope this description is useful. If not let me know and I'll try to be more eloquent.

Jay


 
 
Lowell M





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

You know that's kind of funny Jay, I discovered the same quirk on my own when I was looking at the VCProj file in notepad.

There is a workaround...

Like Jay said, Add a shortcut to the file you want to add, then it will add a shortcut AND the file. Delete the shortcut and you're good to go.


 
 
Alex Filo





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

Thank you Jay and Lowell. After days trying to figure out what was wrong and crawling google, I stumbled on this post. Indeed, adding a shortcut works. I hope Microsoft revisits this and fixes it because it is a very, and I mean very, annoying problem!!!
 
 
ldierk





PostPosted: ClickOnce and Setup & Deployment Projects, Problem adding files to deployment project. Top

I've had the same problem too. The shortcut thingy works for me, but its ridiculous that there is no error message or something like that.