As Operating Systems age, or PCs wear out, it is sometimes necessary to scrap one PC and move to another - all those applications, settings and data to move over. Upgrading the OS often amounts to the same problem, since applications have to be re-installed.
Moving (or copying) Expression Web website settings from one computer to another requires four steps:
- Copy the configuration files from the original computer to a temporary location
- Copy from the temporary location to the new computer
- Edit the configuration files to correct the website location on the new computer
- Find and enter the password for publishing each website into the Publishing Properties.
Note that the configuration files contain the website location (on the computer), the publishing location(s) and username(s). The files do NOT include any passwords.
Copy to temporary location
When using any Windows operating system, the Expression Web 3 settings for each web site are located in the folder at:
and for Expression Web 4 the settings are at
When entered in the Windows Explorer address bar the expression
%Appdata% will automatically expand into the correct path for the Windows version being used, in Windows XP, for example this is:
C:\Documents and Settings\<userName>\Application Data\
Each website has its own folder (in the SiteData folder) which contains an XML file named
user.config. To move the settings for a website from one computer to another, copy this folder (and its contents) to the corresponding location on the other computer.
To find the folder in Windows Explorer, type the location into the Windows Explorer address bar.
With the website folders open in Windows Explorer, scroll through the Folders bar and use the + symbols to open the folders for Web 3 (or Web 4) until the SiteData folder is revealed and opened. Then right-click and drag the required SiteData folders to a temporary external storage location - this could be a LAN drive or USB drive, even a floppy disc. Choose Copy from the context menu when the mouse button is released, or the files may be moved and thus be unavailable to Expression Web on the original computer.
Copy to new PC
Reverse the above procedure on the new computer - use Windows Explorer to copy from the temporary location to
Edit configuration file
The configuration file is an XML file containing most of the settings relevant to a website. It is likely that the website location will have to be edited, unless the paths to the sites are the same on both computers. Note that the default location used for Expresssion Web sites varies according to the version of Windows; for example:
C:\Documents And Settings\<userName>\My Documents\My Webs\
C:\Users\<userName>\Documents\My Web Sites\
An example extract from the user.config file resembles:
In this case the username is empty since the site is a local site.
The path (as in "
<PrimitiveObject Name="Path">E:\websites\wwwroot\</PrimitiveObject>") may have to be changed to suit the websites location on the new computer.
The user.config files do not include any passwords - these are hidden in the Windows Registry and/or other encrypted places. To publish a website the appropriate password must be entered in Publishing Properties.