I am facing one weird issue.
I have created one .net core application that overwrites the pdf file available in root location of application; and this is working fine locally.
but when i publish on Azure App service and run, use to get error
Access to the path 'D:\home\site\wwwroot\wwwroot\templates\abc.pptx' is denied.
Here is the code, i am using in Azure App Service
var masterFile = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot\\templates\\","MasterTemplate.pptx");
var dummyFile = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot\\templates\\", "abc.pptx");
System.IO.File.Copy(masterFile , dummyFile, true);
Please suggest if you know any solution around...