When hosting a send-only endpoint in an Azure App Service deployed via runFromPackage, the .diagnostics folder cannot be created at runtime.
I tried including the correct .diagnostics/{endpoint}-configuration.txt file in the deployment package, but even then, I get this error : Invalid access to memory location. : ‘C:\home\site\wwwroot.diagnostics{endpoint}-configuration.txt’
What is the best practice for this scenario? Setting the diagnostics path to C:\home\LogFiles and only use that path for non local development scenario’s?
That is peculiar. It is a good idea to capture startup diagnostic files somewhere less volatile. We have documented how to do that here. I’ll check internally if this is a bug and can be fixed for Azure App Service.
Please let us know if changing the diagnostics directory as documented above would work for you.