I'm using SharePoint 2010 Foundation and Visual Studio 2010 Ultimate. I'm working on a Web Parts with two features:
- Feature1 - My Web Parts
- Feature2 - Contains two Visual Studio module with CSS and JavaScript and jQuery code.
When I deploy my Solution by Visual Studio I have this error:
Error occurred in deployment step 'Activate Features': Failed to instantiate file "path1/path2/picture1.png" from module "MyModule": The specified list does not exist.
Can anyone help me?
Thanks
[Edit - 1]
Hi. This is my element.xml:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="MyModule" Url="CssScripts/Css">
<File Path="MyModule\path1\path2\Picture1.png" Url="path1/path2/Picture1.png" Type="GhostableInLibrary" />
<File Path="MyModule\path1\path2\Picture2.png" Url="path1/path2/Picture2.png" Type="GhostableInLibrary" />
<File Path="MyModule\path1\path2\Picture3.png" Url="path1/path2/Picture3.png" Type="GhostableInLibrary" />
...
</Module>
</Elements>