I wrote a service running in an Azure Windows Server 2016 VM. When it gets a job from the queue it spawns another program which generates a PDF and saves it to disk. I am reading config files and saving HTML files (which are converted to PDF using a third party component) to disk using streamreader/streamwriter.
But I keep getting versions of path could not be found errors for all disk access to the Azure Files SMB share. If I use a local disk it works fine.
I have double checked that it is using the right path and that the path actually exists (simply P:).
This has been running fine for years on a colocated app server. I am trying to move everything to Azure right now.
Any ideas what I am missing or doing wrong?
EDIT:
Looks like I am running into this problem: https://serverfault.com/questions/177139/windows-service-cant-access-network-share
But I can't perform the same solution here because with Azure Files there is no remote server that I can add a user to.
An MSDN forum user suggested using Azure Storage Client Library. My third party PDF component cannot be reprogrammed to use the Azure Client Storage Library, so I am left with doing all of my work on the local drive and then copying the final PDF file over to Azure Files.
This would be a completely acceptable solution. But I don't know how to pull it off.