配置错误从Azure 1.6升级到1.7

时间:2012-10-18 17:29:06

标签: azure

我正尝试从2010年和1.6迁移到Visual Studio 2012和Azure 1.7。当我升级我的工作项目时,我现在遇到了一堆错误,如:

  

CloudServices58:无法加载名为“反恶意软件”的导入模块。

这让我在Microsoft.WindowsAzure.targets:

中找到了这个
  <Target Name="PreValidateServiceModel">
    <ValidateServiceFiles
        AllowLegacyWebRoles="$(AllowLegacyWebRoles)"
        ServiceDefinitionFile="@(SourceServiceDefinition)"
        ServiceConfigurationFile="@(SourceServiceConfiguration)">
    </ValidateServiceFiles>
  </Target>

我的cscfg文件中有这样的错误:

  

设置   角色的'Microsoft.WindowsAzure.Plugins.Antimalware.ServiceLocation'   MyProject.ProcessLogs在服务配置文件中指定,   但它未在服务定义文件中声明。

错误让我来到这里:

<ConfigurationSettings>
  <...stuff.../>
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ServiceLocation" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.EnableAntimalware" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.EnableRealtimeProtection" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.EnableWeeklyScheduledScans" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.DayForWeeklyScheduledScans" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.TimeForWeeklyScheduledScans" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ExcludedExtensions" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ExcludedPaths" value="" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ExcludedProcesses" value="" />
</ConfigurationSettings>

我很丢失,有什么想法吗?

1 个答案:

答案 0 :(得分:2)