I have some code which is working perfectly on my localhost IIS and was working perfectly on my dedicated server. I recently migrated the .net mvc application to an Azure web app, and I am now seeing this error when making this call:
var client = new System.Net.WebClient();
client.DownloadFile(uri, Path.Combine(HttpContext.Current.Server.MapPath("/Images/headshots"), seekerID + ".jpg"));
[DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\Images\headshots\14.jpg'.]
I suspect it has something to do with permissions on azure, but am at a loss as how to fix.