I got this error message from Visual Studio 2010 today when I was building a SharePoint package:
“A Project Item with the following item ID could not be found: 3725bd89-3a48-4333-84dd-c99d25cc1904”
Say what?
I searched through my solution for that ID and came up with nothing.
So what now then?
I started to retrace my steps because I had previously had no problems with deploying/packaging the SharePoint project.
I had recently added a new mapped folder to my project which mapped to the resources folder in the SharePoint root directory and in that mapped folder I had added a new resource file. Could that be the culprit?
The error message states that a project item (SPI) could not be found so I thought I´d have a look at the Package.package(xml) file outside of Visual Studio to see if that file contained anything suspicious:
OK, so there is that ID that is causing all this problems. But I can´t understand why?
I restarted Visual Studio and look at the project structure:
There is no “Resources” mapped folder in there. I guess something happened when I added that folder to Visual Studio and now it is not included in project structure anymore.
Now looking in the packaging explorer there is also an error. I removed that item and re-added the “Resources” folder again through the “include in project” menu option:
And now…yes it works again.
Is this a bug or did I do something wrong?
I don´t know but for now I´ll leave it at that and if I encounter this issue again I´ll always start with restarting Visual Studio to see if that gives me any ideas…
#1 by Panda on June 24, 2011 - 10:52
I had this same problem after adding something to the Layouts folder. These steps fixed it, thanks!
#2 by Srikanth on August 31, 2011 - 12:51
Yaa.. I too got the same issue.. resolved after restarting my visual studio… thank you
#3 by Joe on December 12, 2011 - 10:20
thanks..saved a lot of time for me:-)
#4 by A. Malik on November 9, 2012 - 08:29
Many many thanks !
#5 by Johan Leino on November 9, 2012 - 21:56
🙂