Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Configuring web.config
posted

I thought I was following the instructions correctly on this page: http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=6158

 

But, when I go to build my website I get the following errors:

 Message    1    Could not find schema information for the element 'infragistics.web'.   

 Error    4    Unrecognized configuration section infragistics.web.

 

My web.config file looks like this (or at least the relevant parts, IMO.

    <configSections>
                   ...
                    <section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <infragistics.web imageDirectory="~/images" javaScriptDirectory="~/scripts"/>

Parents
  • 28464
    posted

    Hello Jason,

    Thanks for writing and for reporting this problem. In your web.config I see that for some reason the infragistics.web section is nested inside other sectionGroups (there are 3 closing sectionGroup tags which makes me believe that infragistics.web is nested 3 levels deep).

    I believe (from the information in the KB article) that the infragistics.web handler should be in the root of the configSections tree. I tried the following approach in a test web-site and it worked fine in my case: 

    <configuration>
      <configSections>
        <section
           name="infragistics.web"
           type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    </sectionGroup>
                </sectionGroup>
            </sectionGroup>
        </configSections>

      <infragistics.web imageDirectory="~/images" javaScriptDirectory="~/scripts"/>

Reply Children