I've looked at the related questions and followed their solutions, but it's still isn't working for me. Any help is appreciated, thank you.
I have a web application added as a virtual directory (under the parent site) and converted into an application. It even has its own application pool. The parent is .net 2.0 and child is .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 is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
The <clear/>
doesn't work. I've also tried referencing the system.web.extensions block outside of <configSections>
, and wrapping it in
<location path="." inheritInChildApplications="false">
and it still doesn't work.
I've also tried removing those sections in the child's Web.Config and it still doesn't work:
<configurations>
<configSections>
<remove name="system.web.extensions" />
</configSections>
<connectionStrings>
...
</connectionStrings>
</configuration>
At this point, I don't know what else to try. Is there a way to separate the child web application completely from the parent, but still retaining the parent's domain? I.E. I want to be able to access the child's website through www.parent.com/child.
Thanks again.