+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Web config size exceed in Sf definitions

Web config size exceed in Sf definitions

5 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    19 Oct 2010
    Link to this post
    Hi Team,

    I have one web.config file exceeding size in my current solution under IIS7. It's working under dev server. I have this error 0x80070032 and flag exceed file size of web config file. My current solution use a very large web config definition for many Modules and metafields.
    Size :254 KB.
    Exist some way to extend this size limit or pointing 2 or more web config from a main web config to exceed this limit.

    Thanks. Romi
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 Oct 2010
    Link to this post
    Hi Pierre,

    You could check the posts below



    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    20 Oct 2010
    Link to this post
    Hi,

    Not enough Ivan. I have moved profile and appSettings sections but i need more place. It's not possible to move telerik sections aren't heriting of configSource. Exit some way to extened base to read telerik section from a external config file file in place of web config to move.My others sections are not very larges.

    Thanks.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 Oct 2010
    Link to this post
    Hi Pierre,

    You could create a custom configuration section for your custom modules and split the web.config.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    20 Oct 2010
    Link to this post
    Hi Ivan,

    Great Ivan, I have moved using this logical some parts of cms sitefinity configurations but i not very happy because it's more complicated to understand the future Updates in modules. I would prefer move only Metafields in one custon metafields.config file. For this it's not clear if i can Extend the Metafields collection of Telerik.cms.engine.configuration section to inherit the configSource key allowing move like bottom sample that works perfectly.  I add here my custom code allowing move cms web.cofig section if someelse have this similar issue. Could you investigate the way ?. Thanks Romi.

    Change in sectionGroup telerik
    <!--<section name="cms" type="Telerik.Cms.Configuration.SectionHandler, Telerik.Cms" requirePermission="false"/>-->
          <section name="cms" type="ExtendSectionHandler, App_Code" requirePermission="false"/>
    Extend Base class of cms
    using System;
    using System.Configuration;
    using Telerik.Cms.Configuration;
     
     
        public partial class ExtendSectionHandler : SectionHandler
        {
            //Extend Telerik.cms.configuration.SectionHandler to allow
            //move telerik web.config sections to telerik.config files
            //using ConfigSource="telerik.config" or "folder1\telerik.config"
     
            //// Methods
            public ExtendSectionHandler()
            {
                //todo
            }
     
            /// <summary>
            /// Gets or sets the name of the default Config file for Split webconfig file.
            /// </summary>
            [ConfigurationProperty("ConfigSource", IsRequired = false), StringValidator]
            public string ConfigSource
            {
                get
                {
                    return (string)base["ConfigSource"];
                }
                set
                {
                    base["ConfigSource"] = value;
                }
            }
        }

    Use as
    <!--tekerik cms section moved to external file-->
        <cms configSource="cms.config">
        </cms>

     Cheers.

Register for webinar
5 posts, 0 answered