Bug Report T319250
Visible to All Users

DevExpress types are added to the devExpress section in web.config twice when the type attribute value contains white spaces

created 9 years ago

After I edit my aspx file (either directly or using the designer), something changes my config file.  I like to line things up in the config file so the first few lines look like this when I start:

C#
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <section name="sqlSettings" type="NetRate.ConfigHelper.ElementSectionHandler, NetRate.ConfigHelper" /> <sectionGroup name="devExpress"> <section name="compression" type="DevExpress.Web.CompressionConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="themes" type="DevExpress.Web.ThemesConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="settings" type="DevExpress.Web.SettingsConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="errors" type="DevExpress.Web.ErrorsConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> </sectionGroup> </configSections> <appSettings> <add key="ErrorLog" value="D:\Portal\Debug\PortalError.Log" /> <add key="DashboardFolder" value="D:\Portal\" /> <add key="RatingURL" value="http://www.netratedemo.com/scripts/NRCLUI.dll/LoadRating" />

Your code (I assume) looks at it and doesn't like how I have it formatted and changes it to:

C#
<configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <section name="sqlSettings" type="NetRate.ConfigHelper.ElementSectionHandler, NetRate.ConfigHelper" /> <sectionGroup name="devExpress"> <section name="compression" type="DevExpress.Web.CompressionConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="themes" type="DevExpress.Web.ThemesConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="settings" type="DevExpress.Web.SettingsConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="errors" type="DevExpress.Web.ErrorsConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="themes" type="DevExpress.Web.ThemesConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="compression" type="DevExpress.Web.CompressionConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="settings" type="DevExpress.Web.SettingsConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> <section name="errors" type="DevExpress.Web.ErrorsConfigurationSection, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /> </sectionGroup> </configSections> <appSettings> <add key="ErrorLog" value="D:\Portal\Debug\PortalError.Log" /> <add key="DashboardFolder" value="D:\Portal\" /> <add key="RatingURL" value="http://www.netratedemo.com/scripts/NRCLUI.dll/LoadRating" />

This causes my config file to have duplicate sections for "themes", "compression", "settings" and errors" which prevents it from running.  It also causes spaces between attributes to be removed.  I don't have a problem with you adding things that are needed, but you should be able to read the XML and see that those sections are already in the "devExpress" sectionGroup.  Also when you copy other lines, leave the spacing alone!<

Comments (3)
DevExpress Support Team 9 years ago

    Hello,

    I reproduced the issue with duplicated entries in the devExpress section and forwarded this message to our R&D team for further research. Most likely, the ASP.NET designer does not recognize the types specified in this manner and adds them one more time. However, we need additional time to research this behavior.
    As for white spaces removal, I see that non-DevExpress entries are also shifted. It is possible to reproduce the issue without our components. Try to add the EntityDataSource component from the standard ASP.NET controls pack and switch to Design View. As a result, white spaces between "name" and "type" attributes are removed and all text is shifted to the left. I've demonstrated this behavior in the attached screencast.

    LK LK
    Larry Kingsbury 9 years ago

      Is there some way to turn off DevExpress without uninstalling it?  I am thinking this could still be devexpress looking for components and not finding any.  I believe that when this happens all entries have extra spaces between attributes removed, whether then are DevExpress or Not.

      DevExpress Support Team 9 years ago

        Hello Larry,

        We don't have a final solution at the moment and need additional time to research the problem. This thread will be updated once we have results. Please bear with us.

        Answers approved by DevExpress Support

        created 9 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.