【问题标题】:Azure SDK 2.4 installation failed to install the Azure Storage EmulatorAzure SDK 2.4 安装未能安装 Azure 存储模拟器
【发布时间】:2014-10-20 09:24:49
【问题描述】:

使用 Azure SDK 安装程序 2.4 安装 Azure 存储模拟器失败,日志中出现以下错误:

CAQuietExec:  Windows Azure Storage Emulator 3.3.0.0 command line tool
CAQuietExec:  
CAQuietExec:  Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.WindowsAzure.Storage.Emulator.Controller.Configuration.StorageEmulatorConfigCache' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'enable'. Note that attribute names are case-sensitive. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 104)
CAQuietExec:     at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
CAQuietExec:     at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
CAQuietExec:     at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
CAQuietExec:     --- End of inner exception stack trace ---
CAQuietExec:     at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
CAQuietExec:     at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
CAQuietExec:     at Microsoft.WindowsAzure.Storage.Emulator.Controller.Configuration.StorageEmulatorUpdatableConfiguration.GetConfigurationSection(String name)
CAQuietExec:     at Microsoft.WindowsAzure.Storage.Emulator.Controller.Configuration.StorageEmulatorConfigCache..cctor()
CAQuietExec:     --- End of inner exception stack trace ---
CAQuietExec:     at Microsoft.WindowsAzure.Storage.Emulator.Controller.Configuration.StorageEmulatorConfigCache.get_Configuration()
CAQuietExec:     at Microsoft.WindowsAzure.Storage.Emulator.Controller.Initialization..ctor(Boolean forceCreate, Boolean autodetect, String server, String sqlInstance)
CAQuietExec:     at Microsoft.WindowsAzure.Storage.Emulator.InitCommand.RunCommand()
CAQuietExec:     at Microsoft.WindowsAzure.Storage.Emulator.Program.Main(String args)
CAQuietExec:  Error 0xe0434352: Command line returned an error.
CAQuietExec:  Error 0xe0434352: CAQuietExec Failed

查看 machine.config 行发现了“启用”属性,但我不确定为什么会出现问题。 这是 machine.config 行

            <section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" enable="true" requestQueueLimit="15000"/>

任何帮助将不胜感激。

【问题讨论】:

    标签: azure installation


    【解决方案1】:

    我遇到了同样的问题,以下是我解决问题的方法。

    1. 通过添加/删除程序卸载旧的 Windows Azure 存储模拟器。如果您无法卸载,请使用 FixItnow 卸载 http://support.microsoft.com/mats/program_install_and_uninstall/en

    2.旧的模拟器没了,应该可以安装新的存储模拟器了。

    试一试,让我知道。

    谢谢

    【讨论】:

    • 感谢 Krishna 的回复,不幸的是我已经卸载了以前的模拟器,但我仍然遇到同样的问题
    • 这是我的 machine.config 中的内容
    • 另外查看 C:\Users\\WAStorage*.*。清理它们,看看是否有助于解决问题。
    【解决方案2】:

    在上一篇文章中,有一个发布的 machine.config 给了我这个问题的答案。

    查看并比较成功安装的 Machine.config 后,我发现有效的配置没有“enable”属性,也没有“ requestQueueLimit”已定义。

    我在安装时删除了这 2 个属性,它起作用了。我不确定安装程序是如何工作的,但它显然没有 machine.config 中所有“processModel”元素的所有定义。

    我希望有人知道为什么这会是一个问题以及为什么此修复有效。

    【讨论】:

    • 我还发现,如果你回到拥有属性,模拟器会失败。
    猜你喜欢
    • 2014-06-12
    • 2014-11-30
    • 1970-01-01
    • 2014-05-18
    • 2015-10-26
    • 2014-10-18
    • 2020-02-06
    • 1970-01-01
    • 2019-06-09
    相关资源
    最近更新 更多