-->

Clear Temp ASP.NET files from Azure Web Site

2019-02-08 10:17发布

问题:

I have a issue with a ASP.NET nopCommerece Plugin that seems to be cached on the server.

I have cleared the nopCommerce cache and restated the application but it didn't help

One of the normal steps is to clear out \Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files but since this is a Azure Web Site, I only have access via FTP and I don't have access to that directory.

How do I go about clearing the Temp Files.

回答1:

when you publish the website on to azure, by right clicking and choosing publish, there should be a option under setting saying: Remove additional files at destination. Check it and publish.



回答2:

I managed to do this by creating a temporary file in the bin folder of my website.

This casuses the temporary hash file to change in the temp folder and then ASP.Net rebuilds everything.

See here for more details about the hash file and its relation to rebuilding.

Remove Additional files didn't fix my problem as it only removes files in webroot not the temporary asp.net files. As far as I can see with Azure you have no access directly to the temporary asp.net files