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

by vivek 1/19/2010 3:54:35 AM

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

Rahul Soni

Rahul Soni  Twitter

 LinkedIn

 Facebook

 Email me



Vivek Kumbhar

Vivek Kumbhar  Twitter

 LinkedIn

 Facebook

 Email me


Stack Exchange

profile for Vivek at Server Fault, Q&A for system administrators and IT professionals

profile for Rahul Soni at Stack Overflow, Q&A for professional and enthusiast programmers

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

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 2012, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0