Saturday, June 11, 2011

Error because of Child Applications reading values from Root web.config

Error because of Child Applications reading values from Root web.config.


To prevent this add location tag with attribute inheritInChildApplications="false" to root web.config for the part which you do not want to inherit.

[...]
<location inheritInChildApplications="false">
 
  <system.web>
    
  [...]   
 
  system.web>
  
location>
[...]


If the error is caused by HttpHandler in root add validate="false" attribute  to the handler which is causing the problem.








<add verb= "GET " path= "CaptchaImage.axd " validate= "false " type= "MSCaptcha.CaptchaImageHandler, MSCaptcha "/>

No comments:

Post a Comment