We use Umbraco and have some custom pages where we inject our own services, a secondary database and so on. However, now when we removed code/a package from source code and try to deploy it all we see on our Azure deploy is this:
An error occurred while starting the application.
FileNotFoundException: Could not load file or assembly ‘SomeAssembly Version=SomeVersion, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.
But the whole package is removed from source code. It should not be looked for anymore. The error should not be there since the package is no longer in use - AT ALL. It’s a custom package as well that no other package is referencing.
Deployed with “Remove additional files from server” from a clean solution and Zip deloy via Azure Devops + from local machine, multiple combinations. Restarted the application a million times. There seems to be no way to make Umbraco aware that this file is no longer available and should not be available and is not in use anymore.
Since there’s no UI/Admin to clear any internal caching - how do we even go about doing this? Why is old code running on the server when deploying new code for Umbraco?
Running version 13 and not gonna update to fix this issue at the moment. There should be a way to clear whatever is locking Umbraco from loading new files without having to upgrade to 15 for example.
Edit: Adding missing package one by one seems to generate an error for each of these packages. So, what is making it check for old code that is LITERALLY not running anywhere in the solution? To be absolutely clear - none of these packages are in use ANYWHERE in code anymore.