2014-01-25 13 views

回答

0

UPDATE:设置文件夹的安全性,同时作为管理员用我的FTP客户端登录到“其他”而没有模拟工作。允许通过网络应用进行更新。

在网站上写入文件需要模拟。在这种环境下,我无法使用模拟代码来处理代码,所以唯一的选择是web.config解决方案。

用户是您设置的FTP用户。您可以并且应该为此设置一个FTP用户并限制其安全权限。真正的密钥是要知道你是否是ORD用户或DFW用户。这些是当前的机架空间数据中心。以下是ord数据中心的模拟示例。

<configuration> 
    <system.web> 
    <identity impersonate="true" userName="ord\USERNAME" password="PASSWORD" /> 
    </system.web> 
</configuration> 

为了发现你的网站是什么样的数据中心了,你可以尝试之一,那么其他的或者你可以登录到您的控制面板,并期待在TestLink的为您的网站。

登录manage.rackspacecloud.com>托管>云网站> [您的网站]>常规设置>查看和编辑>测试网址

如果您的链接中包含那么你的账户是“ORD”在ord else您的账户是dfw。

一旦你做了这个配置更改,请确保你从控制面板重建应用程序。

的Rackspace公司网站说,下面的,但我有发现这是真的:

 You **must** use the username which is configured to be the primary FTP 
     account for the cloud site you are working with. If the site was created 
     under your main account, this will be your main control panel login 
     credentials. If the site was created under a client, please use the 
     client's main account credentials. When in doubt, you can always click 
     the security tab for a cloud site to confirm the primary ftp account.