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!<
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.
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.
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.