Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear Temp ASP.NET files from Azure Web Site

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.

like image 511
user2887119 Avatar asked Oct 16 '13 16:10

user2887119


2 Answers

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.

like image 57
Mohammad S. Avatar answered Nov 15 '22 21:11

Mohammad S.


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

like image 3
GraemeMiller Avatar answered Nov 15 '22 20:11

GraemeMiller