Question

Voici le module que je souhaite déployer sur le serveur et les fichiers qui doivent être affichés dans la bibliothèque de style, lors de leur déploiement sans type Ghostale dans la bibliothèque, Tous vont bien et bien, pas d'erreurs, mais dès que je mets le type GhostablyLibrary, je reçois l'erreur suivante:

Erreur s'est produite dans l'étape de déploiement 'Activer les fonctionnalités': Échec de l'instanciation du fichier "FilePath" à partir de la bibliothèque de style de module: la liste spécifiée n'existe pas.

Je comprends quelle erreur dit, mais comment peut-être?La liste existe-t-elle et il a les sous-dossiers et tout, alors pourquoi dois-je obtenir cette étrange erreur? Et comment résoudre ce problème?

<Module Name="Style Library" RootWebOnly="true">
    <File Path="Style Library\Styles\Style.css" Url="Style Library/Styles/Style.css" type="GhostableInLibrary"/>
    <File Path="Style Library\Images\logo.png" Url="Style Library/Images/logo.png" type="GhostableInLibrary"/>
    <File Path="Style Library\Images\banner.png" Url="Style Library/Images/banner.png" type="GhostableInLibrary"/>
 </Module>

J'ai trouvé un ancien poste ici à propos de ce problème, mais il n'y avait pas de solution acceptable fournie, c'est pourquoi j'ai créé un nouveau poste.

Était-ce utile?

La solution

You need to move the list Url to your module definition:

<Module Name="Style Library" Url="Style Library" RootWebOnly="true">

for GhostableInLibrary to work properly. You should of course then remove it from the File Url, since it is now defined on module level.

If you have no Url in the Module tag you can only use type="Ghostable" on your File elements.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top