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
284
Web.config sample (WebFeatureBrowserVB) error
posted

The error is: "Unrecognized configuration section infragistics.web" on line 11 of the Web.Config in the WebFeatureBrowserVB folder of the samples directory of the SDK.

I received this error before and after upgrading the sample project using the Infragistics .NET Project Upgrade Utility.

The web.config contains the following:

 <?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
  <infragistics.web styleSetPath="~/webfeaturebrowser/styles/" />
  <appSettings>
  </appSettings>
  <connectionStrings />
  <system.web>
    <compilation>
      <compilers>
        <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".VB" compilerOptions="/define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Configuration,System.Data,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HtmlControls,System.Web.UI.WebControls" />
      </compilers>
    </compilation>
    <pages>
      <namespaces>
        <add namespace="System.Drawing" />
        <add namespace="System.Data" />
      </namespaces>
    </pages>
  </system.web>
</configuration>

Any ideas what might be causing this error? I just want to explore the samples. I get loads of errors when I try to browse the showcase samples, I won't go into all of them here; might take all night :P I've noticed that these are web projects and not Visual Studio solutions; although there exists no entries for the references to the Infragistics .dll's in the Web.Config.

This is a fresh install on a Windows Vista x64 machine.

Best Regards,

Mike

Parents
No Data
Reply
  • 28464
    posted

    Hello,

    Thanks for writing and for the detailed description of the problem. I think I know what is going on - you need to explicitly declare the infragistics.web configs section using the SingleTagSection handler of the ASP.NET runtime. This unfortunately is something required by the framework - you cannot have custom tags in web.config without first declaring them. Just add the line in bold to your web.config and this should address the issue.

    <configuration>
        <!-- register local configuration handlers -->
        <configSections>
            <sectionGroup name="dotnetnuke">
                <!-- the requirePermission attribute will cause a syntax warning - please ignore - it is required for Medium Trust support-->
                <section name="data" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
                <section name="logging" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
                <section name="scheduling" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>        </sectionGroup>
            <section name="infragistics.web" requirePermission="false" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
        </configSections>

    Please, let me know if this helps. 

Children