SharePoint 2007 WSP deployment problem. Unable to deploy new files

We detected a problem with our deployment on a production server that runs a collection of SharePoint SharePoint publishing sites.

We are deploying a WSP packaged from Visual Studio in the Sharepoint Management Shell (uninstall, reinstall the solution). In the past, it worked like a charm. We added a custom homepage, css files, images, and then added custom page layouts.

I also have an SP running locally on my computer, and everything works just fine, adding new files without a problem using the Feature deployment. I can add them neatly to the document library or even create new folders from the Elements file.

However, the problem occurs when I deploy my WSP to a production server. I want to add several JS files and an XSL file to the style library, but the files will not be added to the document library. The deployment process goes smoothly, but without errors, and when I test my function in Sharepoint Hive, the new files are on the physical disk! However, they will not be added to the virtual document library.

I can update existing files such as main page and CSS files to make the working function work.

I assume that either this is due to permission problems or some error in my code. But I did the same as before when I deployed.

This is what my Elements.xml file looks like:

<?xml version="1.0" encoding="utf-8"?>  
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  
  <Module Name="ALayout" Url="_catalogs/masterpage" RootWebOnly="true" >  
    <File Path="ALayout\_a_intra.master" Url="_a_intra.master" Type="GhostableInLibrary" />  
  </Module>  
  <Module Name="ALayoutStyles" Url="Style Library" RootWebOnly="true" >  
    <File Path="ALayout\styles\z_aintra_core.css" Url="z_aintra_core.css" />  
    <File Path="ALayout\styles\aintra_std.css" Url="aintra_std.css" />  
</Module>  
  <Module Name="ALayoutStyleImages" Url="Style Library/img" RootWebOnly="true" >  
    <File Path="ALayout\styles\img\a-logobig.png" Url="a-logobig.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\bg.png" Url="bg.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\divider.png" Url="divider.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\nav-bg-hovered.png" Url="nav-bg-hovered.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\nav-bg-radius-left.png" Url="nav-bg-radius-left.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\nav-bg-radius-right.png" Url="nav-bg-radius-right.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\nav-bg-selected.png" Url="nav-bg-selected.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\nav-bg.png" Url="nav-bg.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\nav-divider.png" Url="nav-divider.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\top_bg.png" Url="top_bg.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\user-account-radius-left.png" Url="user-account-radius-left.png" Type="GhostableInLibrary" />  
    <File Path="ALayout\styles\img\user-account-radius-right.png" Url="user-account-radius-right.png" Type="GhostableInLibrary" />  
  </Module>  
  <Module Name="ALayoutScript" Url="Style Library/js" RootWebOnly="true" >  
    <File Path="ALayout\js\script.js" Url="script.js" Type="GhostableInLibrary" />  
    <File Path="ALayout\js\plugins.js" Url="plugins.js" Type="GhostableInLibrary" />  
</Module>  
  <Module Name="ALayoutScriptLibs" Url="Style Library/js/libs" RootWebOnly="true" >  
    <File Path="ALayout\js\libs\jquery-1.4.2.min.js" Url="jquery-1.4.2.min.js" Type="GhostableInLibrary" />  
  </Module>  
</Elements>  

( Javascript) - , . , , . SharePoint .

- -, ?

+5
2

, . Sharepoint , .

, . uninstall- > add, ? ? ..

+5

, . , ...

  • , "js" VS- ( ALayout).
  • IgnoreIfAlreadyExists = "FALSE" node

    = "ALayout\js\libs\jquery-1.4.2.min.js" Url = "jquery-1.4.2.min.js" = "GhostableInLibrary" IfAlreadyExists = "FALSE" /

  • ULSViewer ...

+1

All Articles