Kentico CMS 7.0 Context Help

Importing from web site to web application projects

Importing from web site to web application projects

Previous topic Next topic Mail us feedback on this topic!  

Importing from web site to web application projects

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

Due to the differences between website and web application projects, the system cannot import from one to another automatically. After completing the standard import procedure, manually perform the following steps to ensure that your web application runs correctly:

 

1. The import places all physical files from the imported package into the ~/App_Data/CMSTemp/ImportExport/Files folder. Copy the content of the folder into the root of your web application project.

 

 

InfoBox_Exclamation

 

Important!

 

We strongly recommend creating a backup of your project before overwriting any files.

 

 

2. Open the solution file (WebApp.sln) in Visual Studio from the web project directory.

 

3. Include the files that did not exist in the project before the import:

 

a.Click Show all files at the top of the Solution Explorer.

b.Locate the newly added files.

c.Select the files you wish to include one-by-one while holding the Ctrl key.

d.Right-click one of the files and select Include in Project.

 

4. Right-click the project node (CMSApp) in the Solution Explorer, and select Convert To Web Application.

 

5. Rebuild the solution.

 

Importing into precompiled projects

 

If you are running a precompiled website, you cannot import:

 

Physical files that require compilation (such as cs, vb, aspx, ascx)

The App_Code folder

Virtual objects that contain ASP.NET markup:

Page layouts (ASCX type)

Transformations (ASCX type)

Web part layouts

 

To add files or objects that require compilation, you need to perform the import on the original project and run the precompilation again.