<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Publishing</title><link>http://forums.iis.net/1045.aspx</link><description>Discussion around anything related to publishing content on the IIS 7 web platform</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Problem with Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ScriptHandlerFactory'</title><link>http://forums.iis.net/thread/1909135.aspx</link><pubDate>Fri, 03 Jul 2009 07:42:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909135</guid><dc:creator>Leo Tang - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909135.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1909135</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As the error message indicates , there are duplicate collection entry. You can try add the following section at the beginning of the handler section:&lt;br /&gt;&amp;lt;remove name=&amp;quot;ScriptHandlerFactory&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;The website will inherits the settings form parent level . This should be the reason of this issue. You can check if there is a web.fig file in the parent web content&amp;nbsp;folder(e.g. C:\inetpub\wwwroot\arif\ or C:\inetpub\wwwroot ) and an duplicate collection entry in it.&lt;/p&gt;</description></item><item><title>Problem with Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ScriptHandlerFactory'</title><link>http://forums.iis.net/thread/1908679.aspx</link><pubDate>Tue, 30 Jun 2009 04:47:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908679</guid><dc:creator>arifliminto86</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908679.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1045&amp;PostID=1908679</wfw:commentRss><description>&lt;p&gt;Hi, my name is Arif,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried to deploy the website in windows server 2008 (IIS 7.0). However, it does not work successfully. I developed the website using windows xp and I also have tried to published in windows xp and it works great.&lt;/p&gt;&lt;p&gt;For that projects, I use AJAX. in windows server 2008(IIS 7.0) I am sure that I have installed ajax extension which is the same version that i have installed in my local machine ( windows xp).&lt;/p&gt;&lt;p&gt;Here is the error details that I&amp;#39;ve got, any idea how to solve this error? &lt;br /&gt;&lt;/p&gt;&lt;div class="content-container"&gt;
&lt;h2&gt;HTTP Error 500.19 - Internal Server Error&lt;/h2&gt;
&lt;h3&gt;The requested page cannot be accessed because the related configuration data 
for the page is invalid.&lt;/h3&gt; &lt;/div&gt;
&lt;div class="content-container"&gt;
Detailed Error Information
&lt;div id="details-left"&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Module&lt;/th&gt;
&lt;td&gt;IIS Web Core&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Notification&lt;/th&gt;
&lt;td&gt;BeginRequest&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th&gt;Handler&lt;/th&gt;
&lt;td&gt;Not yet determined&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Error Code&lt;/th&gt;
&lt;td&gt;0x800700b7&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th&gt;Config Error&lt;/th&gt;
&lt;td&gt;Cannot add duplicate collection entry of type &amp;#39;add&amp;#39; with unique key 
attribute &amp;#39;name&amp;#39; set to &amp;#39;ScriptHandlerFactory&amp;#39; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Config File&lt;/th&gt;
&lt;td&gt;\\?\C:\inetpub\wwwroot\arif\arif\web.config&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;div id="details-right"&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Requested URL&lt;/th&gt;
&lt;td&gt;http://localhost:80/arif/arif/index.htm&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Physical Path&lt;/th&gt;
&lt;td&gt;C:\inetpub\wwwroot\arif\arif\index.htm&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th&gt;Logon Method&lt;/th&gt;
&lt;td&gt;Not yet determined&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Logon User&lt;/th&gt;
&lt;td&gt;Not yet determined&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;div class="config_source content-container"&gt;
Config Source&lt;pre&gt;&lt;code&gt;  142:         &lt;br /&gt;&lt;span class="highlight-code"&gt;  143:         &amp;lt;add name=&amp;quot;ScriptHandlerFactory&amp;quot; verb=&amp;quot;*&amp;quot; path=&amp;quot;*.asmx&amp;quot; preCondition=&amp;quot;integratedMode&amp;quot;&lt;/span&gt;&lt;br /&gt;  144:              type=&amp;quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item></channel></rss>