This is an error I received when trying to deploy a SharePoint 2010 with a custom site definition in my development environment
Error
"PMS_FG" and "PMS_FG" contain a file that deploys to the same Package location: PMS\PMS_FG\documents.aspx D:\Users\dalzoubi\Solutions\PMIS\Spectra.PMS2010\Package\Package.package
Looking at the folder PMS_FG\, there is only one document.aspx file!!!
So that did not make sense at first site, so I decided to open the Visual Studio Project Item Data file that represents the site definition to see what is going wrong in there.
Solution
1. In Solution Explorer, right click the Site Definitions and click Open Folder in Windows Explorer
2. In explorer view, double click SharePointProjectItem.spdata, select Select a program from a list of installed programs, click OK
3. Select Notepad, uncheck Always use the selected program to open this kind of file.
4. Click OK
5. Notepad opens and right there you will notice one element that is different than the other elements:
6. Remove that element, Save and close your file.
7. Go back to Visual Studio, you will be asked to reload that file, click Yes to All
8. Now try to deploy your solution, you should no longer have that error.
Happy coding!
0 comments:
Post a Comment