September 15th, 2015
The Import/Export feature of Kentico is one which we use at BizStream on a regular basis. It is by far the easiest way to move large amounts of data from one Kentico instance into another. In a recent project I have been working on, I was re-creating a Kentico site by exporting and importing all content, data, users etc. This site was very old and had been through at least 3 major upgrades of Kentico, so there was a large amount of data stored in this site. When running the import, I would get an error message when Kentico attempted to import version history. As the screenshot below shows, this error message was not very descriptive of the error that was occurring.
After some digging, I discovered that problem was that I was running the import in IIS Express with a memory limit. This was a very large site, and IIS Express was running into the per-process memory limit in Windows.
There are two solutions that can be used to work around the issue.
- Run the site in full IIS, which as long as you are running on a 64-bit OS (and you should be at this point), it will have no problem with the larger import and can run through the entire import. This is the solution I went with, as the server that was running IIS is considerably more powerful than my development machine, and could run through the large import much more quickly than my development machine.
- Run IIS Express in 64-bit mode.To do this through the command line, run the following command. Once the command is run, you must restart Visual Studio and IIS Express in order for it to run the 64-bit version.
reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\WebProjects /v Use64BitIISExpress /t REG_DWORD /d 1