views:

395

answers:

1

I am trying to replace the following section to blank section ..

 <secureWebPages mode="RemoteOnly" encryptedUri="abc.co.uk" unencryptedUri="www.abc.co.uk" maintainPath="True" warningBypassMode="AlwaysBypass" bypassQueryParamName="BypassSecurityWarning" ignoreHandlers="WithStandardExtensions">
 <files>
  <add path="abc.aspx"/>
 </files>
</secureWebPages>

But after executing it is giving me the following error

WDP00002: missing section secureWebPages/configuration.

Can any one plz help me in this regard

+2  A: 

This error appears to mean the section you wish to replace, cannot be found in the web.config.

For example, my entry in my WDP read

authentication=authentication.config

However authentication could not be found in the root, as it is under system.web, so I changed it to

system.web/authentication=authentication.config

and this worked.

Note that while debugging this, I tried to replace the whole system.web element, and this did not appear to work either - I am not sure what caused this, but if you cannot replace system.web, I suggest you try a different element, and see if that works, such as connectionStrings

MattH