0
我有以下代碼:在MapPath奇怪的錯誤
string path = "~/Others/Muzica/Demo/"+interpret+"_"+album+"/";
CMSUtils.CreateFolder(MapPath(path));
其中CreateFolder方法是這樣的:
public static void CreateFolder(string path)
{
if (!System.IO.Directory.Exists(path))
{
System.IO.Directory.CreateDirectory(path);
}
}
所以我創建,如果不存在的文件夾,它... 所有本地工作大但我不明白爲什麼,如果我把它放在它給出的服務器上:
未能映射路徑'/ gramma_prod/Others/Muzic a/Demo/Vitamina C_De n-ai fi fost Tu /'。
at CMSUtils.CreateFolder(MapPath(path));
我已籤,如果:/ gramma_prod /其他服務器上的過程中存在的和/ Muzica /演示/存在......
是否有人看到這個問題?