Search code examples
asp.netazureweb-configazure-web-roles

Transform web.config on azure


The question is a follow up to this one: Generate Web.Debug config which could be debugged](Generate Web.Debug.config which could be debugged)

I have defined a transformation for web.debug.config. During compilation I see the following:

Transformed Web.config using C:\data\Main\WebRole\Web.Debug.config into
C:\data\Main\obj\obj\x64\Debug\WebRole.csproj\TransformWebConfig\ [...]
   transformed\Web.config.

Checked Web.config in the specified location - it is correct (transformation succeeded)

But when I start the service in the azure emulator I get an alert that Debugging not enabled alert

Why does it happen? Looks that incorrect web.config is taken. Where should I specify the location of correct (transformed) file?


Solution

  • I have found this solution and it works perfectly

    https://translate.google.co.il/translate?hl=en&sl=de&tl=en&u=http%3A%2F%2Fwww.sascha-dittmann.de%2Fpost%2FWebConfig-Transformation-im-Windows-Azure-Compute-Emulator.aspx&anno=2