This is a migrated thread and some comments may be shown as answers.

Upgrade adds duplicate entries when using location overrides in web.config

2 Answers 99 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 05 Oct 2017, 12:43 AM

When I upgrade a Telerik project that has the handlers defined inside a location tag it add duplicate entries.  The ones inside the location remain the same and the handlers are added at the end of the web.config file along with a duplicate authentication tag.

 

Is a better solution to just place everything outside the location override or is there a way to disable updating the web.config file on upgrade? I have a lot of projects inside one solution file, so mass upgrading is preferred over individual upgrades.

 

Here is what I mean by location.

<location allowOverride="True|False" path="path" />

I had to give the WebResource.axd file it's own location per other documentation and placed the main content inside a location of ".".  Some folders are setup for anonymous access, like css and javascript files, while other folders require windows authentication.  I have projects nested under other projects, so I don't want a higher web.config file to have any influence on a lower one.  It's an interesting setup, but it all works great other than trying to upgrade Telerik.  It's easy enough to remove the duplicate entries, but it would be nice to not have to do that for each upgrade. 

I can provide better examples later when I'm in front of a computer.

 

2 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 05 Oct 2017, 02:50 PM
Placing everything that was in the "." location into the main hierarchy fixed the issue.  Doing that and enabling Anonymous access to specific folders in IIS did the trick.  It was just a bad configuration on my part.
0
Vesko
Telerik team
answered on 09 Oct 2017, 03:26 PM
Hello Daniel,

I am really glad to hear that you have fixed the issue on your side. Your feedback is appreciated and will be considered.

Regards,
Vesko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Installer and VS Extensions
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Vesko
Telerik team
Share this question
or