Sharepoint 2010 PublishingSiteCollectionを実行する運用サーバーへの展開に問題があることがわかりました。
VisualStudioからSharepointManagementShellにパッケージ化されたWSPを展開しています(アンインストール、ソリューションの再インストール)。それは過去に魅力のように働いてきました。カスタムマスターページ、cssファイル、画像を追加し、後でカスタムページレイアウトを正常に追加しました。
また、SPをコンピューター上でローカルに実行しており、Featureの展開を介して新しいファイルを追加しても問題なくすべてが正常に機能します。それらをドキュメントライブラリにきちんと追加したり、Elementsファイルから新しいフォルダを作成したりすることもできます。
ただし、WSPを運用サーバーにデプロイすると問題が発生します。いくつかのJSファイルとXSLファイルをスタイルライブラリに追加したいのですが、ファイルがドキュメントライブラリに追加されません。エラーは発生しませんが、展開プロセスはスムーズに進みます。SharepointHiveで機能を確認すると、新しいファイルが物理ドライブにあります。ただし、仮想ドキュメントライブラリには追加されません。
マスターページやCSSファイルなどの既存のファイルを更新して、デプロイされている機能が機能するようにすることができます。
私の推測では、それは許可の問題または私のコードのバグに関係していると思います。しかし、私は以前とまったく同じように展開しました。
Elements.xmlファイルは次のようになります。
<?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>
最後の2つのモジュール(Javascript用)は、ドキュメントライブラリにデプロイできないモジュールです。別のドキュメントライブラリを試しましたが、それでも本番サーバーでは機能せず、ローカルでのみ機能します。また、機能を介してSharepointHiveに展開することはできません。
誰もが私が逃したことを考えることができますか?