Adding impersonation to your site allows the web server process to run as your primary File Transfer Protocol (FTP) user. This means that it has permission to write to your files, create files, create folders, and perform other activities that would normally require full read, write, and execute permissions.
The following steps work only on ASP.NET through a web.config file. If you are not sure what data center your site is deployed in, log in to the web hosting control panel at http://ensure.practicalhost.com and view the test link for the site. The region is displayed in the portion of the testing URL’s domain that comes before websitetestlink. For example, if the testing URL is http://www.domain.com.php5-1.dfw1-1.websitetestlink.com, the site is in the DFW region. Our cloud web hosting service is available only in the DFW and ORD regions.
Use your http://ensure.practicalhost.com account username and password, where indicated by and in the following command.
For customers whose sites are deployed in our DFW data center, add the following lines to your web.configfile:
<configuration> <system.web> <identity impersonate="true" userName="dfw\USERNAME" password="PASSWORD" /> </system.web> </configuration>
For customers whose sites are deployed in our ORD data center, add the following lines to your web.config file:
<configuration> <system.web> <identity impersonate="true" userName="ord\USERNAME" password="PASSWORD" /> </system.web> </configuration>
Note: You must use the user name that is configured to be the primary FTP account for the cloud site that you are working with. When in doubt, you can go to the Security tab for a cloud site to confirm the primary FTP account.