Technical Questions Technical questions on Kentico CMS Connector for Microsoft SharePoint.
Kentico CMS Connector for Microsoft SharePoint > Technical Questions > Adding CMS in Existing Website View modes: 
User avatar
Member
Member
anuj.singh_eps-hotmail - 10/7/2009 6:31:07 AM
   
Adding CMS in Existing Website
I am trying to connect CMS pages with my existing website pages.

My existing website is on ASP.NET and SQL Server 2005.
Kentico Pages are available on 4.1 version.

I tried a lot to figure out this problem, but I didn't find any proper solution.
Provide me a proper solution so that I could merge my existing website with Kentico CMS pages and I also wish that these pages could communicate with each other.

Thanks in Advance

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 10/8/2009 4:38:22 AM
   
RE:Adding CMS in Existing Website
Hello,

You could merge Kentico CMS project folder with your existing project, but you would need to make sure there will be no interference with .dll files and settings in web.config file. You would also need to exclude your folder/pages from Kentico CMS.
Please see also Integration with your existing asp net application article for information about integration with existing ASP.NET application.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
anuj.singh_eps-hotmail - 10/8/2009 5:27:12 AM
   
RE:Adding CMS in Existing Website
Hello Martin,

I have already gone through this link but there is none proper solution available in this link.
I have created a virtual directory in my main folder and then placed Kentico in it, but it is showing error when I am trying to run kentico pages from this location.

Please sort out my following queries:

1) What I will have to do about DLL and web.config file?

2) Will I have to merge both web.config data into a single web.config file and then place it in root folder or leave them in there existing location??

3) What about other data available in App_Code, App_Theme and Other System folders for both websites??

4) What I will have to do about Global.asax file available in both websites??

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 10/20/2009 6:27:11 AM
   
RE:Adding CMS in Existing Website
Hello,

This issue has been solved through e-mail, but I will summarize it for other visitors. Basically you can use following configuration:

1) Set both 'DemoSite' and 'DemoSite/KenticoCMS' folders to be virtual directories.

2) For 'DemoSite' folder use your own web.config only with connection string and lines that you need for your application without any Kentico CMS stuff .

3) For 'DemoSite/KenticoCMS' folder use default web.config of Kentico CMS

4) Remove all Kentico CMS stuff from 'DemoSite' folder (like bin and app_code folders) and leave only your stuff and 'KenticoCMS' sub-directory in 'DemoSite' folder.

Since there is special web.config file in each folder the web.config from sub-folder is inheriting settings from web.config from parent folder and there may appear some errors like: "the entry '...' has been already added"
The solution is to remove these entries from web.config from sub-folder.

Best Regards,

Martin Dobsicek.