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
Hello Mike,
Yes, I think this is also possible - for example:
<system.web> <pages> <controls> <!-- Released Control Namespaces --> <add tagPrefix="ig" namespace="Infragistics.Web.UI" assembly="Infragistics35.Web.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ig" namespace="Infragistics.Web.UI.LayoutControls" assembly="Infragistics35.Web.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ig" namespace="Infragistics.Web.UI.ListControls" assembly="Infragistics35.Web.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ig" namespace="Infragistics.Web.UI.DataSourceControls" assembly="Infragistics35.Web.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ig" namespace="Infragistics.Web.UI.EditorControls" assembly="Infragistics35.Web.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <!-- Preview Control Namespaces --> <add tagPrefix="ig" namespace="Infragistics.Web.UI.GridControls" assembly="Infragistics35.Web.Preview.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ig" namespace="Infragistics.Web.UI.NavigationControls" assembly="Infragistics35.Web.Preview.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ig" namespace="Infragistics.Web.UI.DataSourceControls" assembly="Infragistics35.Web.Preview.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ig" namespace="Infragistics.Web.UI.LayoutControls" assembly="Infragistics35.Web.Preview.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <!-- Pre-Aikido WebUI Controls --> <add tagPrefix="igtbl" namespace="Infragistics.WebUI.UltraWebGrid" assembly="Infragistics35.WebUI.UltraWebGrid.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="ignav" namespace="Infragistics.WebUI.UltraWebNavigator" assembly="Infragistics35.WebUI.UltraWebNavigator.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="igtab" namespace="Infragistics.WebUI.UltraWebTab" assembly="Infragistics35.WebUI.UltraWebTab.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="igmisc" namespace="Infragistics.WebUI.Misc" assembly="Infragistics35.WebUI.Misc.v8.3, Version=8.3.20083.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" /> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </controls> </pages>
Hello Rumen,
Many thanks for your help. That part worked; but simply opened another can of worms. After fixing this, I get many errors of the form:
"Error creating control - This control cannot be displayed because its TagPrefix is not registered in this Web Form".
Is there an easier way to resolve all these hundred or so errors at once instead of having to manually type in TagPrefixes into each and every aspx page in the sample SDK?
Is there also a way to just run the web projects in the SDK without any errors? Do you have an updated working SDK for 2008.2 that I could use instead of the downloadable one? Or is this just me?
Best,
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.