Share This
All Posts  /  Kentico Development Tips  /  December 12, 2016 

Kentico 10 Server Error For Multiple Sites On A Single Domain

If you are running an instance of Kentico that has multiple sites on a single domain, you may run into a 500 server error if you haven't properly updated your web.config file. In this post I will show you how to update your config file to fix this issue. 


Recently, I ran into an issue running multiple Kentico sites on a single domain after upgrading from Kentico 9 to Kentico 10. Initially, I would just get a 500 server error with no helpful information from the browser and the error did not appear in the Windows event log. 


To get more information on the error I set compilation debug to true on line 96 of the Kentico 10 web.config file.

Compilation Debug True

After loading the page again I was able to get the error "Cannot add duplicate collection entry of type 'add' with unique key attribute 'sequence' set to '/CMSTemplates'" on line 226


To fix this, I removed the sequences before adding them

     <!-- Disable direct access to these files which are used only internally by CMS application -->
          <remove sequence="/CMSTemplates"/>
          <remove sequence="/CMSPages/PortalTemplate.aspx"/>
          <add sequence="/CMSTemplates"/>
          <add sequence="/CMSPages/PortalTemplate.aspx"/>


This prevented the duplicate collection entry and the site was able to load properly.


Show More
Share This
The content is extremely good. It has some good information which is written in a easy to understand manner. Thank you for sharing this post. The content is really informative. This blog is always sharing useful information. Keep sharing more information and posts.
12/14/2016 5:26:06 AM
 Security code
Social Buzz

Get in Touch


t: 973.539.5255


715 Main Street
Boonton, NJ 07005


New Jersey

Send Us a Message

 Security code