public void SaveFileOnDisk(Chart ms, string FileName)
{
try
{
string appPath = HttpContext.Current.Request.ApplicationPath;
string physicalPath = HttpContext.Current.Request.MapPath(appPath);
string strpath = physicalPath + "\\Images";
string WorkingDirectory = strpath;
ms.SaveImage("\\\\servername\\Testing" + "\\" + FileName + System.DateTime.Today.ToString("ddmmyyyy") + ".png", ChartImageFormat.Png);
}
我想将图像保存到文件服务器文件夹中获取错误访问路径' \ SERVERNAME \ Testing \ test09002016.png'被拒绝。
我有文件服务器的凭据,但如何在保存图像时使用它们?