How do I repair duplicate resource errors?

J. Scott Elblein

Well-known member
Joined
Dec 14, 2006
Messages
166
Location
Chicago
Programming Experience
10+
Hi all,

Hope everyone had a great NYE.

I was wondernig if anyone could tell me how to repair this problem? For the second time in the same project, due to the &)@#* resource editor, my project is hosed and I have to try and figoure out how to fix it. What happend was, I right clicked a toolbar item and clicked "Set Image", and Imported an image named Restore.jpg (I apparently already had one in there named restore).

I got a dialog confirming that I was going to replace something or other in Sourcesafe. I clicked Cancel in an attempt to back out of it all. Then I started getting resource errors in the designer. I decided that I would just close the entire project without saving anything since I had just saved it when everything was ok before doing that.

It didn't matter. The next time I started the project the same errors are there. I even replaced the .resx with one from a previous date in Sourcesafe, and the problems are still there. When I click on the project Properties, it just shows a big red round X Icon in the resource area with this text (and nothing else): There is already another resource with the name 'restore'.

In the designer I see 55(!) of these:
0069pq1.jpg


I have no idea what to do next and would appreciate any advice. Thanks!
 
When I get these whacko situations I click on each line in the error report window which in turn takes you to the line of code causing the problem.

I then comment the offending line out.

Do this for each error and your form or whatever should be in a state that you can begin to put it right :)

Works for me anyway ...
 
Back
Top