के लिए web.config में
<remove name="entityFramework"/>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
लेकिन फिर भी <remove>
टैग के साथ मैं अभी भी इस त्रुटि मिलती है:
Section or group name 'entityFramework' is already defined. Updates to this may only occur at the configuration level where it is defined.
मैं भी माता-पिता वेब में <location>
टैग लगा दी है। config जहां भी संभव:
<location path="." inheritInChildApplications="false">
<location>
टैग माता पिता web.config के <entityFramework>
खंड के आसपास मौजूद है।
और मैंने आईआईएस (System32 और SysWOW64 में दोनों फ़ाइलों) के लिएHost.config फ़ाइलों में enableConfigurationOverride="false"
रखा है।
मैं उपनिर्देशिका में साइट को entityFramework
टैग देखने से कैसे रोकूं?
संपादित
आईआईएस संस्करण: 7.5.7600.16385
माता पिता web.config से:
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
एल
<location path="." inheritInChildApplications="false">
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</location>
बच्चे web.config से:
<configSections>
<remove name="entityFramework"/>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
</configSections>
एल
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
</entityFramework>
संपादित 2
<clear/>
का उपयोग कर के बारे में: इस लापता अनुभाग घोषणाओं के बारे में त्रुटियों की एक श्रृंखला का कारण बनता है। यदि मैं खंड घोषणाओं की ~ 100 पंक्तियों को वापस जोड़ता हूं तो मुझे त्रुटि मिलती है: An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
त्रुटि <validation validateIntegratedModeConfiguration="false" />
<system.webServer>
में उपयोग करती है, तो भी त्रुटि बनी रहती है।
आईआईएस संस्करण क्या है? क्या आप वास्तव में दिखा सकते हैं कि आपके पास क्या है - कॉन्फ़िगरेशन अनुभाग और वास्तविक ईएफ अनुभाग के तहत दोनों अनुभाग परिभाषा। –
@ जी.Stoynev मैंने आपके अनुरोधित जानकारी के साथ प्रश्न अपडेट किया है। – Legion
यदि आप डुप्लिकेट सेक्शन हटाते हैं तो क्या होता है? क्या आपने असेंबली संस्करण निर्दिष्ट करने वाले इस समस्या को हल करने का प्रयास किया था? dependentAssembly> assemblyBinding> –
Alexandr