解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题

在publish的时候,如果想使用Remote Desktop

image

有时候会出现“the remote desktop configuration was not generated by windows azure Tools”问题。

image

这是因为我们曾经手动的改动配置文件导致的。但是由于做CI Build,因此配置文件是根据环境来生成的,所以必须面对手工修改(其实也是程序生成)文件的问题。对于这个问题,可以通过下面的步骤来解决:

1. 打开ServiceDefinition.csdef文件,把下面的代码全部删除。

      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />

2. 打开ServiceConfiguration.cscfg文件,把下面的代码全部删除。

      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="" />
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="" thumbprintAlgorithm="sha1" />

 

注意步骤要按顺序进行,否则ServiceConfiguration.cscfg文件又自动生成了,有时候你删除,它又生成导致开发人员非常恼火。

posted @ 2013-01-09 06:31  Jake Lin  阅读(795)  评论(0编辑  收藏  举报