Stroring files in Temporary ASP.NET folder

I’m working on a legacy .NET project. As per the new requirement I’m trying to save the uploaded jpg files for some processing. So I’m getting the executing assembly and create a temporary folder to store images. My question is the ExecutingAssembly returns something like “C:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET FilesApplicationName” but still I can store and and process jpg files in that folder. So is it ok to store files in “Temporary ASP.NET” folder. Will it cause any problem?

Access to file write.lock in ASP.NET web application writing a Lucene search index

I created an ASP.NET application that uses Lucene for searching my web pages. Locally, everything works fine, but when I deploy it to the IIS server, the code that generates the write.lock file during the creation of the index, gives the following error:
Access to the path ‘C:inetpubwwwrootGcsWebOnlineHelpwrite.lock’ is denied.

Application Initialization IIS – Log Files

I have configured the Application Initialization for a Web App running on Azure, the reason for that is to improve the “warm up”, because I have some issues with Scale-out, the instance is not ready for the connection then I got some servers errors.
There is a good doc from Microsoft about that:
https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-application-initialization