Bonsoir,

j'ai un hébergement mutli-site sur lequel, ben... comme son nom l'indique j'héberge plusieurs domaines : domaine1, domaine2 et domaine3

Donc dans l'admin de mes sites, conseils pris auprès de l'hébergeur (1&1), le premier site pointe vers la racine root, le second vers le repertoire rep1 et le troisième vers rep2

D'une manière générale, ça marche!!

Mais lorsque j'utilise un TreeView pointant sur un fichier web.sitemap, pour le domaine2 hebergé dans le rep1, je reçois le message suivant :

Server Error in '/' Application.
--------------------------------------------------------------------------------

Cannot use a leading .. to exit above the top directory.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
System.Web.Util.UrlPath.ReduceVirtualPath(String path) +3626102
System.Web.Util.UrlPath.Reduce(String path) +84
System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +326
System.Web.XmlSiteMapProvider.GetNodeFromXmlNode(XmlNode xmlNode, Queue queue) +946
System.Web.XmlSiteMapProvider.ConvertFromXmlNode(Queue queue) +299
System.Web.XmlSiteMapProvider.BuildSiteMap() +1161
System.Web.XmlSiteMapProvider.get_RootNode() +12
System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +219
System.Web.UI.WebControls.SiteMapDataSource.GetTreeView(String viewPath) +32
System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath) +29
System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath) +7
System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath) +22
System.Web.UI.WebControls.TreeView.DataBindNode(TreeNode node) +73
System.Web.UI.WebControls.TreeView.PerformDataBinding() +305
System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +82
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.TreeView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e) +43
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

D'après ce que j'ai pu lire sur le net, le problème serait lié au fait que mon fichier sitemap ne se trouve pas à la racine du site.

Existe-t'il une solution à ce type de problème?

Merci bien pour votre aide,
Tommy