[英]Fail to build Azure Cloud Service
I reopened an old project with a wcf cloud service and im getting these errors: 我使用wcf云服务重新打开了一个旧项目,并收到以下错误消息:
Error 113 The setting 'Microsoft.WindowsAzure.Plugins.Connect.Refresh' for role WCFService is specified in the service configuration file, but it is not declared in the service definition file.
错误113角色WCFService的设置'Microsoft.WindowsAzure.Plugins.Connect.Refresh'在服务配置文件中指定,但未在服务定义文件中声明。 C:\\Users\\Etc\\ - Cloud\\Cloud Service\\ServiceConfiguration.Cloud.cscfg
C:\\ Users \\ Etc \\-Cloud \\ Cloud Service \\ ServiceConfiguration.Cloud.cscfg
Error 114 The setting 'Microsoft.WindowsAzure.Plugins.Connect.WaitForConnectivity' for role WCFService is specified in the service configuration file, but it is not declared in the service definition file.
错误114角色WCFService的设置'Microsoft.WindowsAzure.Plugins.Connect.WaitForConnectivity'在服务配置文件中指定,但未在服务定义文件中声明。 C:\\Users\\Etc\\ Service\\ServiceConfiguration.Cloud.cscfg
C:\\ Users \\ Etc \\ Service \\ ServiceConfiguration.Cloud.cscfg
And more 10 errors like this, my ServiceConfiguration file 还有更多这样的10个错误,我的ServiceConfiguration文件
<Role name="WCFService">
<Instances count="1" />
<ConfigurationSettings>
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=xxxxx;AccountKey=xxxxxxxxxxxxxx" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.Refresh" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.WaitForConnectivity" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.Upgrade" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.EnableDomainJoin" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.DomainFQDN" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.DomainControllerFQDN" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.DomainAccountName" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.DomainPassword" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.DomainOU" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.Administrators" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.Connect.DomainSiteName" value="" />
</ConfigurationSettings>
</Role>
<Role name="WorkerRoleService">
<Instances count="1" />
<ConfigurationSettings>
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=xxxx;AccountKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>
And my ServiceDefinition file: 和我的ServiceDefinition文件:
<WebRole name="WCFGuazzelliService" vmsize="ExtraSmall">
<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="80" />
</Endpoints>
<Imports>
<Import moduleName="Diagnostics" />
<Import moduleName="Connect" />
</Imports>
<LocalResources>
<LocalStorage name="WCFService.svclog" sizeInMB="1000" cleanOnRoleRecycle="false" />
</LocalResources>
</WebRole>
<WorkerRole name="WorkerRoleService" vmsize="ExtraSmall">
<Imports>
<Import moduleName="Diagnostics" />
</Imports>
</WorkerRole>
Any ideas what it could be? 有什么想法吗?
That's configuration that is using Windows Azure Connect which was retired on 3 July 2013. 该配置使用的Windows Azure Connect已于2013年7月3日停用。
Details on what to do found in this post: Windows Azure Connect Has Been Retired 有关此帖子中的操作的详细信息: Windows Azure Connect已淘汰
If you're not using it, those configuration items ( Microsoft.WindowsAzure.Plugins.Connect.Refresh.*
) can probably be removed. 如果您不使用它,则可以删除那些配置项(
Microsoft.WindowsAzure.Plugins.Connect.Refresh.*
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.