我重新打开了一个带有wcf云服务的旧项目,我发现了这些错误:
错误113角色WCFService的“Microsoft.WindowsAzure.Plugins.Connect.Refresh”设置在服务配置文件中指定,但未在服务定义文件中声明。 C:\ Users \ Etc \ - Cloud \ Cloud Service \ ServiceConfiguration.Cloud.cscfg
错误114角色WCFService的“Microsoft.WindowsAzure.Plugins.Connect.WaitForConnectivity”设置在服务配置文件中指定,但未在服务定义文件中声明。 C:\ Users \ Etc \ Service \ ServiceConfiguration.Cloud.cscfg
还有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>
我的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>
任何想法可能是什么?
答案 0 :(得分:2)
使用 Windows Azure Connect 的配置已于2013年7月3日停用。
有关此帖子中的操作的详细信息:Windows Azure Connect Has Been Retired
如果您没有使用它,那么可能会删除这些配置项(Microsoft.WindowsAzure.Plugins.Connect.Refresh.*
)。