I'm having issues with one of the slots of an Web App (Linux). The slot is configured to build and deploy from a git repository. The project itself is an ASPNET with .NET 5. This project references a library (also .NET 5) that communicates with a WCF service, and therefore, it references the following packages
<PackageReference Include="System.ServiceModel.Duplex" Version="4.8.1" /> <PackageReference Include="System.ServiceModel.Http" Version="4.8.1" /> <PackageReference Include="System.ServiceModel.NetTcp" Version="4.8.1" /> <PackageReference Include="System.ServiceModel.Primitives" Version="4.8.1" /> <PackageReference Include="System.ServiceModel.Security" Version="4.8.1" />
All of the sudden, I am getting errors after deploying the application, when requesting an endpoint
Could not load file or assembly 'System.ServiceModel.Primitives, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
After inspection with SSH, the file is there, along with the others.
The thing is... if I create a new slot, pointing to the same repo, same branch... it builds, deploys and it works... but this slot, for some reason, is stuck and there's something wrong with it!
I could, of course, delete this slot and create a new one, but there are settings, custom domains and certificates... so I'd rather not have to redo all of that!