ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Error: You can not duplicate mimeMap collection item with unique key attribute in ASP.NetHi @abhi619,<br />Please try the following<br /><br /><a href = 'link(Threads/128375/HTTP-error-50024-internal-server-error-in-IIS/)'>HTTP error 500.24 internal server error in IIS</a><br /><br />It might help you.<br /><br />Cheers Andrea.https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/Fri, 01 Sep 2017 01:32:13 GMTError: You can not duplicate mimeMap collection item with unique key attribute in ASP.Net<p>Thanks for your reply Andrea,<br /><br />I am getting following&nbsp;message<br /><br /><br /></p> <p>HTTP Error 500.19 - Internal Server Error<br />The requested page can not be accessed because the related configuration data for the page is invalid.<br />Detailed error information:<br />Module : Custom Error Module<br />Message : Send Response<br />Handler : StaticFile<br />error code : 0x800700b7<br />Configuration : You can not duplicate mimeMap collection item with unique key attribute 'fileExtension' set to '.ogg'<br />configuration : \\? \ web.config<br />Requested URL : http://SiteURL/Styles/Site2.css<br />Physical path : C: \ \ Styles \ Site2.css<br />login Method : Anonymous<br />Logged in user : Anonymous</p> <p>Configuration Source:<br />&nbsp;&nbsp;&nbsp;&nbsp;6: &lt;staticContent&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;7: &lt;mimeMap fileExtension = ".ogg" mimeType = "audio / ogg" /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;8: &lt;/ staticContent&gt;<br />More information:<br />This error occurs when you are reading the configuration file for the web server or web application. The event log may contain more information about the cause of the error.</p>https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/Fri, 01 Sep 2017 01:36:22 GMTError: You can not duplicate mimeMap collection item with unique key attribute in ASP.Net<p>Hi <a class="username" rel="abhi619">abhi619</a>,</p> <p>Add below code in your <strong>web.config</strong> file</p> <pre class="brush: html">&lt;system.webServer&gt; &lt;staticContent&gt; &lt;remove fileExtension=&#34;.ogg&#34; /&gt; &lt;mimeMap fileExtension = &#34;.ogg&#34; mimeType = &#34;audio / ogg&#34; /&gt; &lt;/staticContent&gt; &lt;/system.webServer&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/Fri, 01 Sep 2017 01:41:55 GMTError: You can not duplicate mimeMap collection item with unique key attribute in ASP.Net<p>It worked. Thanks AnandM</p>https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/https://www.aspforums.net:443/Threads/157164/Error-You-can-not-duplicate-mimeMap-collection-item-with-unique-key-attribute-in-ASPNet/Fri, 01 Sep 2017 02:04:46 GMT