Applicable to:
- Plesk for Windows
Symptoms
-
On accessing a Domain, Plesk Interface or Domains > example.com > IIS Settings the following error is shown:
Error 500.19: Cannot add duplicate collection entry of type 'mimeMap' with unique key attribute 'fileExtension' set to '.srt'
-
The following error appears when migrating a subscription:
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' -
Website's static content like images, .css, .js files cannot be loaded
Cause
Two identical MIME types are specified.
Resolution
Remove the MIME type specified in the error from the domain's settings or server-wide:
- Log into Plesk
- Browse to Domains > example.com > IIS Settings
- Remove the duplicate line ending with
.srt
in field MIME types - Click Apply
- Log in to the server via RDP
- Go to Internet Information Services (IIS) Manager > SERVERNAME > MIME Types
- Remove duplicate MIME type
- Connect to the server via RDP
- Open Internet Information Services (IIS) Manager > <SERVERNAME> > Sites > pleskcontolpanel > MIME Types
- Remove one MIME type with extension ".srt"
Internal because the exact steps not are clear
-
Open Domains > example.com > File Manager
-
Remove one of the lines with duplicate value for
fileExtension
from fileweb.config
, for example:(...)
<staticContent>
<mimeMap fileExtension=".srt" mimeType="application/octet-stream" />
<mimeMap fileExtension=".srt" mimeType="text/plain" />
</staticContent>
(...)
Comments
0 comments
Please sign in to leave a comment.