14

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.

user2887119
  • 141
  • 1
  • 3

2 Answers2

13

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.

Mohammad S.
  • 429
  • 1
  • 6
  • 26
  • This is exactly what I needed to do to fix a `System.Web.HttpCompileException` problem I was having. – daveaglick Dec 19 '14 at 21:24
  • If you are using continuous integration or deployment from Visual Studio Online rather than deploying directly from Visual Studio, I've had luck editing a couple of settings in the build definition to make this happen. While editing the build definition, go to Deployment in the Process section and set both "Allow Upgrade" and "Do Not Delete" to false, then save the build definition and queue a new build. – smlync Jun 05 '15 at 18:01
  • 1
    Thanks! "Remove additional files at destination" worked 100%. – smulldino Mar 28 '16 at 17:48
  • This solved the issue I had where I renamed a partial view but Azure was still holding onto the old file and throwing a "An error occurred during the compilation of a resource required to service this request" error. – Gabe Dec 17 '21 at 13:02
3

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

GraemeMiller
  • 11,973
  • 8
  • 57
  • 111