I'm creating a web deploy package from a small VS2022 C# / ASP.NET MVC app (the deployment package size is about 38mb).
I've had times on customer's systems where the deployment takes about an hour and other times it's fast (About 10 seconds) with no discernable reasoning. And I can't figure out what can be causing it.
Now, I'm working on an issue with this app and deploying it to a test server so I can work with code changes to find and fix the problem. Last night I deployed the code and it took about 3.5 hours to complete. It's going to be a very long debugging cycle if I can't get this figured out.... (I can't run it locally in VS2022 due to host certificates so I have to run a remote debugging session).
This morning, I set up another test and went to install it and I'm sitting about an hour and the IIS manager "Install Progress and Summary" is again sitting on the first step of "delete operation on filePath (.....) skipped because of rule". This prompt is not changing so it appears to be sitting on the initial file.
I thought it may be memory on that VM so I upped the RAM (doubled it) and it started out with 2gb used and now it shot up to 8gb (which is maxed). So this could still be the issue, but I'm not sure why it's eating that RAM. This is my demo/test server and has nothing else on it. Task manager / performance monitor isn't showing any apps using this so I assume it's IIS eating up this memory for some reason. When I say it's not showing it, the total consumption is shown, just not individual apps eating up that memory.
When the webdeploy is not running, the memory sits around 1.5 gb used.
Has anyone else seen this before?