Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[WSS 3] Création de Template : Message d'erreur

1 réponse
Avatar
pocket
Bonjour.

Après avoir créé mon template qui correspond à mes besoin au niveau
masterpage, la création de site à partir de ce template échoue et je réçois
un message d'erreur.

Alors, après maintes tentatives et tests, je décide de créer un autre
template basique cette fois ci afin de voir ce que ça donne.

J'utilise alors le lien suivant :

http://msdn.microsoft.com/fr-fr/office/bb896605.aspx

Il s'agit d'un site d'équipe personnalisé avec une image insérée dans la
masterpage.

Malheureusement, après création du template, la création d'un site se basant
sur ce template échoue et j'ai le même message d'erreur que sur mon vrai
template, à savoir :


Code :
La valeur n'est pas comprise dans la plage attendue. Voici l'erreur
détaillée :


Code :
Erreur du serveur dans l'application '/'.

La valeur n'est pas comprise dans la plage attendue.

Description : Une exception non gérée s'est produite au moment de
l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour
plus d'informations sur l'erreur et son origine dans le code.

Détails de l'exception: System.ArgumentException: La valeur n'est pas
comprise dans la plage attendue.

Erreur source:

Une exception non gérée s'est produite lors de l'exécution de la demande Web
actuelle. Les informations relatives à l'origine et l'emplacement de
l'exception peuvent être identifiées en utilisant la trace de la pile
d'exception ci-dessous.

Trace de la pile:

[ArgumentException: La valeur n'est pas comprise dans la plage attendue.]


Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String
bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String
bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean&
pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid&
pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String&
pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object&
pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String&
pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId,
Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte& piLevel,
UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String&
pbstrFolderUrl, String& pbstrContentTypeOrder) +0

Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl,
Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String
bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean&
pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid&
pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String&
pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object&
pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String&
pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId,
Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte& piLevel,
UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String&
pbstrFolderUrl, String& pbstrContentTypeOrder) +215

Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, PageView
requestedView, HttpContext context, Boolean forRender, Boolean includeHidden,
Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean&
ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64&
bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte&
level, Object& buildDependencySetData, UInt32& dependencyCount, Object&
buildDependencies, SPWebPartCollectionInitialState& initialState, Object&
oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean&
ObjectIsList, Guid& listId) +1553


Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext
context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean
impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId,
UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String&
masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl,
Guid& siteId, Object& buildDependencySetData,
SPWebPartCollectionInitialState& initialState, String& siteRoot, String&
redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean&
objectIsList, Guid& listId, Int64& bytes) +692


Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformation(HttpContext
context, String path, Boolean impersonate, Boolean& fGhostedPage, Byte&
verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified,
SPFileLevel& level, String& masterpageUrl, String& customMasterPageUrl,
String& webUrl, String& siteUrl, Guid& siteId, Object&
buildDependencySetData) +132


Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound) +773

Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String
virtualPath, Boolean fetchContent) +78

Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String
virtualPath) +30


Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetFile(String
virtualPath) +172

System.Web.Hosting.VirtualPathProvider.GetFileWithCheck(String
virtualPath) +11

System.Web.FormatterWithFileInfo.GetSourceFileLines(String fileName,
Encoding encoding, String sourceCode, Int32 lineNumber) +229

System.Web.DynamicCompileErrorFormatter.get_MiscSectionContent() +926

System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean
dontShowSensitiveInfo) +818

System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean
dontShowSensitiveErrors) +645

System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow,
Boolean localExecute) +271

System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext
context, Exception e) +338

Informations sur la version : Version Microsoft .NET Framework
:2.0.50727.1433; Version ASP.NET :2.0.50727.1433

Sur le net, il semble que ce problème est assez rencontré mais dans d'autres
situations (wf, ...).

Avez-vous une idée sur les causes et la solution à ce problème ?

Toute piste est la bienvenue.

Merci.

1 réponse

Avatar
Pierre Vivier-Merle \(MVP\)
Bonjour,

Etes vous sûr que la master page implémente toutes les content placeholders
nécessaires par votre default.aspx et que les webparts dans le fichier
onet.xml sont positionnées dans les bonnes zones de webparts de default.aspx
?

Cordialement / Regards,
Pierre

--------------------------------------------
Pierre Vivier-Merle
MVP MOSS 2007
http://blogs.developpeur.org/pierre

"pocket" a écrit dans le message de
groupe de discussion :
Bonjour.

Après avoir créé mon template qui correspond à mes besoin au niveau
masterpage, la création de site à partir de ce template échoue et je
réçois
un message d'erreur.

Alors, après maintes tentatives et tests, je décide de créer un autre
template basique cette fois ci afin de voir ce que ça donne.

J'utilise alors le lien suivant :

http://msdn.microsoft.com/fr-fr/office/bb896605.aspx

Il s'agit d'un site d'équipe personnalisé avec une image insérée dans la
masterpage.

Malheureusement, après création du template, la création d'un site se
basant
sur ce template échoue et j'ai le même message d'erreur que sur mon vrai
template, à savoir :


Code :
La valeur n'est pas comprise dans la plage attendue. Voici l'erreur
détaillée :


Code :
Erreur du serveur dans l'application '/'.

La valeur n'est pas comprise dans la plage attendue.

Description : Une exception non gérée s'est produite au moment de
l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour
plus d'informations sur l'erreur et son origine dans le code.

Détails de l'exception: System.ArgumentException: La valeur n'est pas
comprise dans la plage attendue.

Erreur source:

Une exception non gérée s'est produite lors de l'exécution de la demande
Web
actuelle. Les informations relatives à l'origine et l'emplacement de
l'exception peuvent être identifiées en utilisant la trace de la pile
d'exception ci-dessous.

Trace de la pile:

[ArgumentException: La valeur n'est pas comprise dans la plage attendue.]


Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String
bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet,
String
bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean&
pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot,
Guid&
pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String&
pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object&
pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String&
pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32&
pdwItemId,
Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte&
piLevel,
UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String&
pbstrFolderUrl, String& pbstrContentTypeOrder) +0

Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String
bstrUrl,
Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String
bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean&
pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot,
Guid&
pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String&
pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object&
pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String&
pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32&
pdwItemId,
Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte&
piLevel,
UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String&
pbstrFolderUrl, String& pbstrContentTypeOrder) +215

Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, PageView
requestedView, HttpContext context, Boolean forRender, Boolean
includeHidden,
Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean&
ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64&
bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte&
level, Object& buildDependencySetData, UInt32& dependencyCount, Object&
buildDependencies, SPWebPartCollectionInitialState& initialState, Object&
oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean&
ObjectIsList, Guid& listId) +1553


Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext
context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean
impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId,
UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel,
String&
masterPageUrl, String& customMasterPageUrl, String& webUrl, String&
siteUrl,
Guid& siteId, Object& buildDependencySetData,
SPWebPartCollectionInitialState& initialState, String& siteRoot, String&
redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean&
objectIsList, Guid& listId, Int64& bytes) +692


Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformation(HttpContext
context, String path, Boolean impersonate, Boolean& fGhostedPage, Byte&
verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified,
SPFileLevel& level, String& masterpageUrl, String& customMasterPageUrl,
String& webUrl, String& siteUrl, Guid& siteId, Object&
buildDependencySetData) +132


Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext
context, String path, Boolean throwIfFileNotFound) +773

Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String
virtualPath, Boolean fetchContent) +78

Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String
virtualPath) +30


Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetFile(String
virtualPath) +172

System.Web.Hosting.VirtualPathProvider.GetFileWithCheck(String
virtualPath) +11

System.Web.FormatterWithFileInfo.GetSourceFileLines(String fileName,
Encoding encoding, String sourceCode, Int32 lineNumber) +229

System.Web.DynamicCompileErrorFormatter.get_MiscSectionContent() +926

System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean
dontShowSensitiveInfo) +818

System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean
dontShowSensitiveErrors) +645

System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean
canThrow,
Boolean localExecute) +271

System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext
context, Exception e) +338

Informations sur la version : Version Microsoft .NET Framework
:2.0.50727.1433; Version ASP.NET :2.0.50727.1433

Sur le net, il semble que ce problème est assez rencontré mais dans
d'autres
situations (wf, ...).

Avez-vous une idée sur les causes et la solution à ce problème ?

Toute piste est la bienvenue.

Merci.