Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Jan 21, 2026, 05:26 AM

Title: Domain or Plesk shows Error 500.19: Cannot add duplicate collection entry of
Post by: Suhitha on Jan 21, 2026, 05:26 AM
Question: Domain or Plesk shows Error 500.19: Cannot add duplicate collection entry of type 'mimeMap' with unique key attribute 'fileExtension'


Applicable to:



Symptoms


Error 500.19: Cannot add duplicate collection entry of type 'mimeMap' with unique key attribute 'fileExtension' set to '.srt'


Command execution failed on the source server 'source' (203.0.113.2) with non-zero exit code.
command: "C:\Program Files (x86)\Plesk\admin\bin64\websrvmng" --get-mime-types --vhost-name=example.com
exit code: 1
stdout: Filename: ?\C:\Windows\system32\inetsrv\config\applicationHost.config
Line number: 39996
Error: Cannot add duplicate collection entry of type 'mimeMap' with unique key attribute 'fileExtension' set to '.srt'



Cause

Two identical MIME types are specified.


Resolution

Remove the MIME type specified in the error:

                                        For a single domain

1.Connect to the server via RDP

2.Create a backup of the file C:\Windows\System32\inetsrv\config\applicationHost.config

3.Open file C:\Windows\System32\inetsrv\config\applicationHost.config with a text editor

4.Remove the text in line with number mentioned in the error message and save the changes


                                              Server wide

1.Log in to the server via RDP

2.Go to Internet Information Services (IIS) Manager > SERVERNAME > MIME Types

3.Remove duplicate MIME type

                                            f Plesk Interface is affected
1.Connect to the server via RDP

2.Open Internet Information Services (IIS) Manager > <SERVERNAME> > Sites > pleskcontolpanel > MIME Types

3.Remove one MIME type with extension ".srt"