2

I'm getting an error in Visual Studio 2010 after pressing F5 to Debug:

Error occurred in deployment step 'Add Solution': Error: Cannot find this file specified in the manifest file: G2_SiteDefinition_List_Instances_Feature\ListInstance1\Elements.xml

But elements.xml file is there with the ListIntance1 folder. What am I missing here?

2
  • Can you verify that the file is actually in the wsp? If you rename from .wsp to .cab, you should be able to open it to view what files are in there.
    – Laurie
    May 4 '11 at 17:04
  • @Laurie: You are correct. ListIntances1 folder with it's contents did not make to wsp? Why is that? the folder is not excluded from the solution (or project).
    – Roxanne
    May 4 '11 at 17:09
4

Open the feature that includes the project item and expand the files node on the project item to verify the files that are included with the item. I suspect that your elements file will not be displayed. You need open the properties for the elements file (open the file and click F4), and make sure that the type on the file is set to "ElementManifest".

1
  • The problem is fixed but Now i have a this issue when I debug. Error occurred in deployment step 'Activate Features': Feature with Id 'f4578011-7474-45cd-ad91-d16ad4decaf4' is not installed in this farm, and cannot be added to this scope. This is the feature ID for the list instance feature.
    – Roxanne
    May 4 '11 at 17:22
1

Please, check, if the ListInstance1 item is added into your feature (in feature designer)

Also, I can recommend you to check out this awesome Visual Studio Plugin, made by Microsoft MVP Waldek Mastykarz:

http://blog.mastykarz.nl/easier-working-sharepoint-project-items-mavention-spi-references/

This could help you to work with project items in Visual Studio.

14
  • @Omlin: I edited the list feature to give it a new GUID.
    – Roxanne
    May 4 '11 at 17:17
  • @Omlin: I discarded my changes and VS put the old guid back. and I made sure webtemplate now has this GUID. But now I get another error when I do F5. Error occurred in deployment step 'Activate Features': Feature with Id 'f4578011-7474-45cd-ad91-d16ad4decaf4' is not installed in this farm, and cannot be added to this scope. This is the feature ID for the list instance feature.
    – Roxanne
    May 4 '11 at 17:20
  • Did you also modify the feature scope? May 4 '11 at 17:22
  • I think you can simply change feature guid, you can generate a new one with Tools => Create GUID May 4 '11 at 17:29
  • @Omlin: Okay I changed the GUID again. But apparently I have a something (like workflow or something) in visual studio project (a project that was based on WSP I downloaded from production server) that depends on a list that does not exist in the farm. How do I find out the object that depending on certain guid (in visual studio project)
    – Roxanne
    May 4 '11 at 17:41
1

Better create a new List Definition and see the columns that you specify in Elements.xml appear in the Custom Columns through Site Settings and update

0

In the solution ,solutionname.feature > manifest tab . You can find "Items in the solution" and "Items in the feature". My list definition files in "Items in solution". So I moved these files to "items in the feature". That solved my problem

1
  • Please don't add the exact same answer to this question, as you did on this one. Instead, try to specify your answer further to make it a better of this specific question. Thank You!
    – Benny Skogberg
    Jul 21 '16 at 10:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.