shibayan / IISManager

IIS Manager Extension for Azure Web Apps
Apache License 2.0
31 stars 8 forks source link

not executing tranformation #6

Closed dimitri-ak closed 6 years ago

dimitri-ak commented 6 years ago

I have the following structure of web.config image I want to change cacheManager section. I created .xdt file with the following

data that's need to be changed

image After restarting web app in the transformation logs I see: Start 'IISManager' site extension transform No element in the source document matches '/configuration/cacheManager' Not executing Replace Successful 'D:\home\SiteExtensions\IISManager\applicationHost.xdt' site extension transform Start 'site' site extension transform No element in the source document matches '/configuration/cacheManager' Not executing Replace Successful 'D:\home\site\applicationHost.xdt' site extension transform sandboxproc.exe complete successfully.

What am I doing wrong? Or with this extension I can't change this particular section, only basic ones...

Thanks.

shibayan commented 6 years ago

The CacheManager element exists only in Web.config, not in ApplicationHost.config. Since the IIS Manager translates to ApplicationHost.config, the error that the element is not found is correct.

When converting to Web.config, please use it at the time of build using MSBuild side function.