Web.Release.Config does not work


I have a web site I just took over and am wanting to get web transformations working. I have always had success with MVC projects doing this for debug and release but this ASP web pages application refuses to cooperate.

I apologize if this is a duplicate. I see a lot of questions like this but nothing has solved my issue yet.

If I press F5 and run, I get web.config settings as I expect. If I publish my "Test" profile (debug mode) I get web.Test.Config transformations as expected. If I publish my "Release" profile I get the same web.Test.Config transformations and NOT the release one.

Possible issues or things that may be of interest:

The web.config file expands in the solution to show the debug file. The release file is not part of this and is listed separately below.

I tried changing the compilation setting for debug to false in the main web.config. This had no effect.

In the SLN file I noticed that I have lines in the GlobalSection for postSolution that list my project GUID followed by .Debug or .Release. BOTH of these say "Debug|Any CPU" at the end. I changed the release ones to say "Release|Any CPU". I republished but VS just changed this back to Debug on me.

In Build -> Configuration Manager, I select Release as thje Active soltion configuration. In the Project contexts box, my application only has Debug available in the Configuration column drop down.

Edit: I noticed that in website.publishproj there was no section for Release. There was a PropertyGroup with configuration of Debug but that's all. Being cavalier or stupid I ignored the "do not modify this file" message and added the release section. This had no effect.

Edit: Photo pasted in. The dropdown is expanded. <a href="https://i.stack.imgur.com/9K1Pz.png" rel="nofollow"><img alt="Build configuration screen" class="b-lazy" data-src="https://i.stack.imgur.com/9K1Pz.png" data-original="https://i.stack.imgur.com/9K1Pz.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>


The highlighted dropdown is where you would need to add the configuration back in:

<a href="https://i.stack.imgur.com/EhfXD.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/EhfXD.png" data-original="https://i.stack.imgur.com/EhfXD.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>


  • Why is my SqlPackage DeployReport returning an empty report?
  • Apply a gradle plugin with a common configuration to all projects
  • Mocking Non-Standard Events in F# Foq
  • GRPC and types import error in App Engine Datastore
  • C# Excel interop - how to test if interop object is still working and performing a task?
  • CodeIgniter URI Parameter is partially bypassing an “if” statement
  • Why does java tzupdater add leap seconds?
  • Getting media player state in windows phone 7
  • Bash if statement with multiple conditions
  • Button text different than value submitted in query string
  • Automatically associate new Sonar project with custom quality profile and quality gate
  • Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
  • How to get Eclipse Oxygen to run on Java 9
  • How do I get HTML corresponding to current DOM tree?
  • PHP buffered output depending on server setting?
  • Functions in global context
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Paperclip, set path outside of rails root folder
  • Display issues when we change from one jquery mobile page to another in firefox
  • Dynamically accessing properties of knockoutjs observable array
  • Deselecting radio buttons while keeping the View Model in synch
  • How to get a value (ex: baseURL) in every Karate feature?
  • Is possible to count alias result on mysql
  • Check if a string to interpolate provides expected placeholders
  • Perl system calls when running as another user using sudo
  • JSON with duplicate key names losing information when parsed
  • Trying to switch camera back to front but getting exception
  • How to show dropdown in excel using jrxml (jasper api)?
  • Jquery - Jquery Wysiwyg return html as a string
  • XCode can't find symbols for a specific iOS library/framework project
  • SVN: Merging two branches together
  • Invalid access key error using credentials redeemed from an amazon open id token
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • Circular dependency while pushing http interceptor
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • -fvisibility=hidden not passed by compiler for Debug builds
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Getting Messege Twice Using IMvxMessenger
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • UserPrincipal.Current returns apppool on IIS