Cannot add duplicate collection entry of type in IIS 7 / 7.5

by vivek 1/18/2010 3:24:35 PM

Today one of my colleague came across a WebDAV issue where a customer was getting the error “Error: Cannot add duplicate collection entry of type 'add' with combined key attributes 'users, roles, path' respectively set to '*, , *'” when he would try to open WebDAV Authoring Rules feature in IIS 7.

image18

The error message clearly states that we have duplicate entry in the applicationHost.config file.

<webdav>
<
authoringRules>
<
add users="*" path="*" access="Read" /> -----------> Line 965
</authoringRules>
</
webdav>

Searched for the same text and found it at system.webServer\webdav\authoringRules.

Solution here is, the issue happens because we are missing the <clear /> at the top under authoringRules section. Added the same and now we are able to access Authoring Rules fine in WebDAV.

applicationHost.config looks like this:

        <system.webServer>
<
webdav>
<
authoringRules>
<
clear /> -----------> missing this
<
add users="Administrator" roles="" path="*" access="Read, Write, Source" />
<
add users="*" roles="" path="*" access="Read" />
</
authoringRules>
</
webdav>
</
system.webServer>

The keyword <clear /> is used to ignore the global setting and use the ones we configure at the site level.

Hope this helps,
Vivek Kumbhar


Quote of the day:
This country has come to feel the same when Congress is in session as when the baby gets hold of a hammer. - Will Rogers


blog comments powered by Disqus

Search


Tags



Categories

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0