[Umbraco 13] Umbraco.Community.AzureSSO causes 500.30 ASP.NET Core app failed to start

After a website was successfully upgraded to Umbraco 13, I wanted to redeploy it with Umbraco.Community.AzureSSO.

I noticed that whenever I have to deploy the website with this package for the first time, I get HTTP Error 500.30 and I have to manually go into VM and delete everything in wwwroot.

Did anyone else experience this or does anyone have a hint at a solution ?

Difficult to give a great answer as I am not sure how you’re deploying or where you’re deploying to.

It is best practice to have your deployment tool clean up first, usually there’s an option called “Remove additional files at destination” and if you’re using Azure you can put that in your .pubxml file too: <DeleteExistingFiles>true</DeleteExistingFiles>.

Consider what happens when you remove a NuGet package, for example: if you don’t do a clean deploy, those old dlls (or static files) are still in use on your server, possibly doing things that you no longer want, since you uninstalled the NuGet package.
Deploying from a clean slate every time ensures that you have a repeatable and reliable deployment.

1 Like

Doesn’t that pretty much mean the umbraco backoffice becomes just a content editor.. (rather than a CMS for developers) no css editing/creation via back office for instance as that would be lost? (and hopefully your media isn’t on disk?) :wink: