asp.net - Can't stop child web application from inheriting parent's web.config -


i've looked @ related questions , followed solutions, it's still isn't working me. appreciated, thank you.

i have web application added virtual directory (under parent site) , converted application. has own application pool. parent .net 2.0 , child .net 4.0.

the parent's web.config:

<configuration>     <configsections>         <sectiongroup name="system.web.extensions" ...>             <sectiongroup name="scripting" ...>                 <section name="scriptresourcehandler" ... />                 <sectiongroup name="webservices" ...>                     <section name="jsonserialization" ... />                     <section name="profileservice" ... />                     <section name="authenticationservice" ... />                 </sectiongroup>             </sectiongroup>         </sectiongroup>     </configsections>     ... </configuration> 

child's web.config

<configurations>     <configsections>             <clear/>           </configsections>     <connectionstrings>         ...     </connectionstrings> </configuration> 

my error message:

there duplicate 'system.web.extensions/scripting/scriptresourcehandler' section defined

the <clear/> doesn't work. i've tried referencing system.web.extensions block outside of <configsections>, , wrapping in

<location path="." inheritinchildapplications="false"> 

and still doesn't work.

i've tried removing sections in child's web.config , still doesn't work:

<configurations>     <configsections>             <remove name="system.web.extensions" />          </configsections>     <connectionstrings>         ...     </connectionstrings> </configuration> 

at point, don't know else try. there way separate child web application parent, still retaining parent's domain? i.e. want able access child's website through www.parent.com/child.

thanks again.

this link helped me: http://www.asp.net/whitepapers/aspnet4/breaking-changes#0.1__toc245724860

i moved root web.config (c:\windows\microsoft.net\framework64\v2.0.50727\config). after that, wrapped each sections in parent's web.config

<location path="." inheritinchildapplications="false">

and seems working now.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -