【问题标题】:'Microsoft.Azure.Storage.Emulator.Controller, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies'Microsoft.Azure.Storage.Emulator.Controller, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 或其依赖项之一
【发布时间】:2017-05-12 17:02:58
【问题描述】:

我们无法自动填充您的 Visual Studio Team Services 帐户。

遇到以下错误:

TF400813:资源不可用于匿名访问。需要客户端身份验证。Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。 Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。 Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。 Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。 Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。 Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。 Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。该系统找不到指定的文件。 Microsoft Azure 工具:无法加载文件或程序集“Microsoft.Azure.Storage.Emulator.Controller,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。系统找不到指定的文件。

此错误的原因可能是什么?

【问题讨论】:

  • We were unable to automatically populate your Visual Studio Team Services accounts 你的意思是说当你对VSTS做一些操作时,你得到了错误。请提供有关此问题的更详细的方案或步骤。另外,您的环境中安装的 Azure Storage Emulator 和 Microsoft Azure SDK 版本是多少?
  • 查看相关解决方案:stackoverflow.com/questions/41450542/…

标签: azure azure-storage azure-blob-storage


【解决方案1】:

我尝试了上述方法,但尝试安装存储模拟器 4.6 时仍然出错:

> === Logging started: 11/1/2017  13:25:03 ===
Action start 13:25:03: INSTALL.
Action start 13:25:03: AppSearch.
Action ended 13:25:03: AppSearch. Return value 1.
Action start 13:25:03: FindRelatedProducts.
Action ended 13:25:03: FindRelatedProducts. Return value 1.
Action start 13:25:03: LaunchConditions.
Action ended 13:25:03: LaunchConditions. Return value 1.
Action start 13:25:03: ValidateProductID.
Action ended 13:25:03: ValidateProductID. Return value 1.
Action start 13:25:03: CostInitialize.
Action ended 13:25:03: CostInitialize. Return value 1.
Action start 13:25:03: FileCost.
Action ended 13:25:03: FileCost. Return value 1.
Action start 13:25:03: SetREINSTALLMODE.
Action ended 13:25:03: SetREINSTALLMODE. Return value 1.
Action start 13:25:03: CostFinalize.
Action ended 13:25:03: CostFinalize. Return value 1.
Action start 13:25:03: SetCommandForRunInitialize.
Action ended 13:25:03: SetCommandForRunInitialize. Return value 1.
Action start 13:25:03: InstallValidate.
Action ended 13:25:03: InstallValidate. Return value 1.
Action start 13:25:03: InstallInitialize.
Action ended 13:25:04: InstallInitialize. Return value 1.
Action start 13:25:04: RemoveExistingProducts.
Action ended 13:25:04: RemoveExistingProducts. Return value 1.
Action start 13:25:04: ProcessComponents.
Action ended 13:25:04: ProcessComponents. Return value 1.
Action start 13:25:04: UnpublishFeatures.
Action ended 13:25:04: UnpublishFeatures. Return value 1.
Action start 13:25:04: RemoveRegistryValues.
Action ended 13:25:04: RemoveRegistryValues. Return value 1.
Action start 13:25:04: RemoveShortcuts.
Action ended 13:25:04: RemoveShortcuts. Return value 1.
Action start 13:25:04: RemoveFiles.
Action ended 13:25:04: RemoveFiles. Return value 1.
Action start 13:25:04: InstallFiles.
Action ended 13:25:04: InstallFiles. Return value 1.
Action start 13:25:04: RunInitialize.
Action ended 13:25:04: RunInitialize. Return value 1.
Action start 13:25:04: CreateShortcuts.
Action ended 13:25:04: CreateShortcuts. Return value 1.
Action start 13:25:04: WriteRegistryValues.
Action ended 13:25:04: WriteRegistryValues. Return value 1.
Action start 13:25:04: RegisterUser.
Action ended 13:25:04: RegisterUser. Return value 1.
Action start 13:25:04: RegisterProduct.
Action ended 13:25:04: RegisterProduct. Return value 1.
Action start 13:25:04: PublishFeatures.
Action ended 13:25:04: PublishFeatures. Return value 1.
Action start 13:25:04: PublishProduct.
Action ended 13:25:04: PublishProduct. Return value 1.
Action start 13:25:04: InstallFinalize.
CAQuietExec:  Windows Azure Storage Emulator 4.6.0.0 command line tool
CAQuietExec:  Error: No available SQL Instance was found.
CAQuietExec:  Error 0xfffffff6: Command line returned an error.
CAQuietExec:  Error 0xfffffff6: CAQuietExec Failed
CustomAction RunInitialize returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 13:25:04: InstallFinalize. Return value 3.
Action ended 13:25:04: INSTALL. Return value 3.
Property(S): UpgradeCode = {CF5CD495-AEDE-42DA-B7CF-A70D398D4E6A}
Property(S): RunInitialize = "C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init -forcecreate -autodetect
Property(S): DOTNET4FULL = 4.6.01055
Property(S): LOCALDB11INSTALLED = C:\Program Files (x86)\Microsoft SQL Server\110\LocalDB\Binn\SqlUserInstance.dll
Property(S): LOCALDB12INSTALLED = C:\Program Files (x86)\Microsoft SQL Server\120\LocalDB\Binn\SqlUserInstance.dll
Property(S): LOCALDB13INSTALLED = C:\Program Files (x86)\Microsoft SQL Server\130\LocalDB\Binn\SqlUserInstance.dll
Property(S): TARGETDIR = D:\
Property(S): StorageEmulatorMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Azure\Storage Emulator\
Property(S): STORAGEEMUDIR = C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\
Property(S): WixUIRMOption = UseRM
Property(S): ALLUSERS = 1
Property(S): ARPNOMODIFY = 1
Property(S): REINSTALLMODE = amus
Property(S): AzureMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Azure\
Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(S): AZUREDIR = C:\Program Files (x86)\Microsoft SDKs\Azure\
Property(S): MICROSOFTSDKSDIR = C:\Program Files (x86)\Microsoft SDKs\
Property(S): ProgramFilesFolder = C:\Program Files (x86)\
Property(S): SourceDir = C:\Users\Jalal\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.4.6.VS2015\87D0206176A522CAE276152FD4B361ACE3D4F258\
Property(S): MSIRMSHUTDOWN = 1
Property(S): WIXUI_INSTALLDIR = INSTALLDIR
Property(S): ARPSYSTEMCOMPONENT = 1
Property(S): DefaultUIFont = WixUI_Font_Normal
Property(S): WixUI_Mode = Minimal
Property(S): Manufacturer = Microsoft Corporation
Property(S): ProductCode = {CE32346F-023F-4259-BE16-D601AFECFFEE}
Property(S): ProductLanguage = 1033
Property(S): ProductName = Microsoft Azure Storage Emulator - v4.6
Property(S): ProductVersion = 4.6.16364.1446
Property(S): ErrorDialog = ErrorDlg
Property(S): SecureCustomProperties = NEWERVERSIONDETECTED;OLDEMULATORPACKAGEDETECTED;OLDERVERSIONDETECTED
Property(S): WixPdbPath = X:\bt\760165\repo\src\XFE\DevelopmentStorage\BuildPackages\40BuildMsi\SetupPackage\obj\amd64\en-us\MicrosoftAzureStorageEmulator.wixpdb
Property(S): MsiLogFileLocation = C:\Users\Jalal\AppData\Local\Temp\WindowsAzureStorageEmulator.txt
Property(S): PackageCode = {073B905A-DECD-4DDC-B033-577329B2A084}
Property(S): ProductState = -1
Property(S): PackagecodeChanging = 1
Property(S): REBOOT = ReallySuppress
Property(S): CURRENTDIRECTORY = C:\Users\Jalal\Downloads
Property(S): CLIENTUILEVEL = 3
Property(S): CLIENTPROCESSID = 3876
Property(S): VersionDatabase = 200
Property(S): MsiSystemRebootPending = 1
Property(S): VersionMsi = 5.00
Property(S): VersionNT = 601
Property(S): VersionNT64 = 601
Property(S): WindowsBuild = 7601
Property(S): ServicePackLevel = 1
Property(S): ServicePackLevelMinor = 0
Property(S): MsiNTProductType = 1
Property(S): WindowsFolder = C:\Windows\
Property(S): WindowsVolume = C:\
Property(S): System64Folder = C:\Windows\system32\
Property(S): SystemFolder = C:\Windows\SysWOW64\
Property(S): RemoteAdminTS = 1
Property(S): TempFolder = C:\Users\Jalal\AppData\Local\Temp\
Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
Property(S): ProgramFiles64Folder = C:\Program Files\
Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
Property(S): AppDataFolder = C:\Users\Jalal\AppData\Roaming\
Property(S): FavoritesFolder = C:\Users\Jalal\Favorites\
Property(S): NetHoodFolder = C:\Users\Jalal\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
Property(S): PersonalFolder = C:\Users\Jalal\Documents\
Property(S): PrintHoodFolder = C:\Users\Jalal\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
Property(S): RecentFolder = C:\Users\Jalal\AppData\Roaming\Microsoft\Windows\Recent\
Property(S): SendToFolder = C:\Users\Jalal\AppData\Roaming\Microsoft\Windows\SendTo\
Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
Property(S): CommonAppDataFolder = C:\ProgramData\
Property(S): LocalAppDataFolder = C:\Users\Jalal\AppData\Local\
Property(S): MyPicturesFolder = C:\Users\Jalal\Pictures\
Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
Property(S): DesktopFolder = C:\Users\Public\Desktop\
Property(S): FontsFolder = C:\Windows\Fonts\
Property(S): GPTSupport = 1
Property(S): OLEAdvtSupport = 1
Property(S): ShellAdvtSupport = 1
Property(S): MsiAMD64 = 6
Property(S): Msix64 = 6
Property(S): Intel = 6
Property(S): PhysicalMemory = 16208
Property(S): VirtualMemory = 25999
Property(S): AdminUser = 1
Property(S): MsiTrueAdminUser = 1
Property(S): LogonUser = jalal
Property(S): UserSID = S-1-5-21-449103266-2938114754-3326020072-1114
Property(S): UserLanguageID = 1033
Property(S): ComputerName = JALAL-PC
Property(S): SystemLanguageID = 1033
Property(S): ScreenX = 1024
Property(S): ScreenY = 768
Property(S): CaptionHeight = 22
Property(S): BorderTop = 1
Property(S): BorderSide = 1
Property(S): TextHeight = 16
Property(S): TextInternalLeading = 3
Property(S): ColorBits = 32
Property(S): TTCSupport = 1
Property(S): Time = 13:25:04
Property(S): Date = 1/11/2017
Property(S): MsiNetAssemblySupport = 4.6.1087.0
Property(S): MsiWin32AssemblySupport = 6.1.7601.17514
Property(S): RedirectedDllSupport = 2
Property(S): MsiRunningElevated = 1
Property(S): Privileged = 1
Property(S): USERNAME = Jalal
Property(S): DATABASE = C:\Windows\Installer\14ab42.msi
Property(S): OriginalDatabase = C:\Users\Jalal\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.4.6.VS2015\87D0206176A522CAE276152FD4B361ACE3D4F258\MicrosoftAzureStorageEmulator.msi
Property(S): UILevel = 2
Property(S): ACTION = INSTALL
Property(S): ROOTDRIVE = D:\
Property(S): CostingComplete = 1
Property(S): OutOfDiskSpace = 0
Property(S): OutOfNoRbDiskSpace = 0
Property(S): PrimaryVolumeSpaceAvailable = 0
Property(S): PrimaryVolumeSpaceRequired = 0
Property(S): PrimaryVolumeSpaceRemaining = 0
Property(S): INSTALLLEVEL = 1
Property(S): SOURCEDIR = C:\Users\Jalal\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.4.6.VS2015\87D0206176A522CAE276152FD4B361ACE3D4F258\
Property(S): SourcedirProduct = {CE32346F-023F-4259-BE16-D601AFECFFEE}
Property(S): ProductToBeRegistered = 1
MSI (s) (EC:A0) [13:25:04:820]: Product: Microsoft Azure Storage Emulator - v4.6 -- Installation failed.

MSI (s) (EC:A0) [13:25:04:820]: Windows Installer installed the product. Product Name: Microsoft Azure Storage Emulator - v4.6. Product Version: 4.6.16364.1446. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.

=== Logging stopped: 11/1/2017  13:25:04 ===

解决方案:

终于成功了:)

我通过stop、delete 和restart sqllocaldb 解决了这个问题。但是我读到的所有帖子都提到了如何使用sqllocaldb 做到这一点。就我而言,我发现我有 2 个实例,sqllocaldb 和 MSSQLLocaldb。所以在我使用MSSQLLocaldb 完成这些步骤后它就可以工作了。

  1. sqllocaldb stop MSSQLLocaldb
  2. sqllocaldb delete MSSQLLocaldb
  3. 从C:\Users\[UserName] 中删除WAStorageEmulatorDb34.mdf 和WAStorageEmulatorDb34_log.ldf(在我的情况下)
  4. sqllocaldb start MSSQLLocaldb

然后尝试再次安装存储模拟器,它应该可以工作。

【讨论】:

    【解决方案2】:

    我有同样的错误:“无法加载文件或程序集 'Microsoft.Azure.Storage.Emulator.Controller, Version=4.0.0.0, Culture=neutral...”

    我正在运行 Azure SDK 工具 2.9.6(最新版本,我相信它带有存储模拟器 4.5)。一切运行良好。当我更新到 Windows Azure 存储客户端库 8.0.0 并运行我的项目时,我遇到了一个异常,我需要最新的模拟器 4.6。 我下载并安装了它,现在当我尝试在存储/开发节点上单击服务器资源管理器时显示上面的错误

    也尝试过 Jahan 的上述步骤,不幸的是对我不起作用。我认为这适用于未正确安装模拟器的情况。

    在我看来问题与模拟器 4.6 版本有关,但我很容易出错。

    【讨论】:

      【解决方案3】:

      首先,从控制面板卸载 Microsoft Azure Storage Emulator 并通过运行此命令确保您是否安装了 LocalDb

      > sqllocaldb info
      

      现在,如果您已经安装了它,请运行以下命令

      > sqllocaldb stop v11.0     --(v11.0 in my case)
      > sqllocaldb delete v11.0   --(v11.0 in my case)
      > sqllocaldb create v11.0   --(v11.0 in my case)
      

      然后,转到 C:\Users(Your User Name) 并删除所有以 AzureStorageEmulatorDB_xx 命名的 .mdf 和 .ldf 文件

      重新安装 Microsoft Azure 存储模拟器。

      (至少这些步骤帮助我解决了问题)

      【讨论】:

        【解决方案4】:

        卸载并重新安装 Azure 存储模拟器,它适用于 4.6.0.0 版。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2017-02-14
          • 2018-03-21
          • 2016-07-19
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-03-18
          • 2017-07-02
          相关资源
          最近更新 更多