Tue Feb 05, 2019 9:45 pm
Hi,
I tried to do the way you mentioned. Except I didn't do Server.MapPath. The reason being, I am not running it on the Http server. It is IIS server and it windows application. I have the below code. It works great on Window workstation but does not work on Windows IIS server 2012 R2 Datacenter.
The code gets executed. I can find it in the log, but the file is never found.
Please let me know what could be the reason.
public void SavePPT()
{
LogTimer timer = new LogTimer(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
if (!isAppendable(append, path))
{
if (File.Exists(path))
{
File.Delete(path);
}
}
presentation.SaveToFile(path, FileFormat.Pptx2013);
timer.WriteLog("PPTFactory", true, "PPT successsfully completed");
}