HTTP 500.19: Duplicate X-Frame-Options Entry
Symptom
After you upgrade Netwrix Change Tracker from a much older version, the console returns the following error:
HTTP Error 500.19 - Internal Server Error
Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'X-Frame-Options'
Cause
This behavior is most likely caused by the upgrade process adding a new X-Frame-Options entry to web.config without removing the entry from the previous installation, leaving two entries with the same key. IIS then rejects the duplicate key, which prevents the site from loading.
Resolution
-
Open IIS and stop the IIS server.
-
Navigate to
C:\inetpub\wwwroot\Change Tracker Generation 7 (NetCore) WebUI\html\. -
Open
web.configin a text editor and locate the twoX-Frame-Optionsentries, for example:<add name="X-Frame-Options" value="SAMEORIGIN"/> -
Comment out one of the two duplicate
X-Frame-Optionsentries so only one remains active. -
Save the file.
NOTE: You may need to save the file to the desktop first, then copy it back into the WebUI
htmldirectory, replacing the original. -
Start IIS and open the Change Tracker console.
You should now be able to log in to the console without the 500.19 error.