Bug Report T295167
Visible to All Users

DevExpress assemblies are added to the "compilation" section with the "configSource" attribute (Web.config)

created 9 years ago

I have "externalized" some of my config sections from my web.config - so I have a line like this in my web.config:

XML
<system.web> <compilation configSource="App_Data\Config\compilation.config"/> .... </system.web>

Whenever I work on my ASPxTreeList in an ".aspx file, I keep getting unwanted and undesired modifications to this section - which ends up looking like:

XML
<system.web> <compilation configSource="App_Data\Config\compilation.config"> <assemblies> <add assembly="DevExpress.Web.ASPxThemes.v15.1, Version=15.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> </assemblies> </compilation> </system.web>

and then my app won't start since ASP.NET complains I cannot have config entries in a section that contains a "configSource=…" attribute.

I hope DX will be able to **FIX** this annoying behavior - the "ASPxThemes" assembly **IS** referenced in the externalized "compilation.config" configuration - so why does DX insist on constantly adding that assembly to "<compilation>/<assemblies>" - and then adds that reference in the wrong place, too … DX should be smart enough to recognize the "configSource=…" attribute and go look in **THAT** config file if the reference has already been added - and if not, if you REALLY must, then AT LEAST add it there, in the right place. Don't mess up my "web.config" to the point I cannot even launch my application anymore!

Comments (1)
DevExpress Support Team 9 years ago

    Hello Marc,

    I have reproduced the described behavior and forwarded this issue to our developers. We will update this thread once any news regarding this subject is available.

    Answers approved by DevExpress Support

    created 9 years ago (modified 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.