Using Octopus 3.2.15, we are attempting to deploy an ASP.NET Web Forms (VB) project to an Azure Web App (using a process step).
Deployment works, but the site crashes with “The directory /App_Code is not allowed because the application is precompiled”. We have pages under App_Code that we need currently.
We do not have this problem with Web Deploy. Publishing from Visual Studio works.
We are using OctoPack. Excluding the folder appears to require a .nuspec file, but once we add we have to be explicit about which files to include, and we have a lot of folders/files. That would create significant maintenance overhead.
Another option appears to be using a PostDeploy script, but since we aren’t using a tentacle, we’re unsure how to target Azure with that. (We are using Azure deployment slots if that matters.)
What is the simplest way to deploy this through Octopus?