J'ai le code suivant:erreur MapPath étrange
string path = "~/Others/Muzica/Demo/"+interpret+"_"+album+"/";
CMSUtils.CreateFolder(MapPath(path));
où la méthode CreateFolder est comme:
public static void CreateFolder(string path)
{
if (!System.IO.Directory.Exists(path))
{
System.IO.Directory.CreateDirectory(path);
}
}
donc je crée ce dossier si elle n'existe pas ... Tout fonctionne très bien au niveau local MAIS je ne comprends pas pourquoi, si je le mets sur le serveur, il donne:
Impossible de mapper le chemin '/ gramma_prod/Others/Muzic a/Démo/Vitamina C_De n-ai fi fost Tu/'.
à CMSUtils.CreateFolder (MapPath (chemin));
J'ai vérifié si:/gramma_prod/Autres/Muzica/Demo/EXISTE sur le serveur et il existe bien sûr ...
Quelqu'un voir le problème?