积极答复者
关于web.config中configSections的继承问题

问题
-
为解决跨域问题,想在IIS8.0的一个主应用程序(MVC_A,EF5.0)下增加子应用程序(MVC_B,EF6.0),然而由于无法在MVC_B的web.config中取消对MVC_A中configSections节点的继承,导致MVC_B因为未引用EF5.0报错而一直无法启动子应用,请各位老师指教!
MVC_A(根应用):
<configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections>
MVC_B(子应用,虚拟目录):
<configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections>
未手动修改web.config任何内容的情况下,会报子应用“定义了重复的“entityFramework”节”,使用Location各种尝试后,会报子应用“未引用entityframework 4.4”
答案
全部回复
-
Hi,
We are happy that your issue has been resolved. And thanks for sharing solution with us.
Thanks.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.