Azure存储模拟器无法安装

cho*_*bo2 29 azure

我无法通过Web平台安装程序安装azure存储模拟器.

=== Logging started: 4/25/2014  10:34:55 ===
Action start 10:34:55: INSTALL.
Action start 10:34:55: AppSearch.
Action ended 10:34:55: AppSearch. Return value 1.
Action start 10:34:55: FindRelatedProducts.
Action ended 10:34:55: FindRelatedProducts. Return value 1.
Action start 10:34:55: LaunchConditions.
Action ended 10:34:55: LaunchConditions. Return value 1.
Action start 10:34:55: ValidateProductID.
Action ended 10:34:55: ValidateProductID. Return value 1.
Action start 10:34:55: CostInitialize.
Action ended 10:34:55: CostInitialize. Return value 1.
Action start 10:34:55: FileCost.
Action ended 10:34:55: FileCost. Return value 1.
Action start 10:34:55: SetREINSTALLMODE.
Action ended 10:34:55: SetREINSTALLMODE. Return value 1.
Action start 10:34:55: CostFinalize.
Action ended 10:34:55: CostFinalize. Return value 1.
Action start 10:34:55: SetCommandForRunInitialize.
Action ended 10:34:55: SetCommandForRunInitialize. Return value 1.
Action start 10:34:55: InstallValidate.
Action ended 10:34:55: InstallValidate. Return value 1.
Action start 10:34:55: InstallInitialize.
Action ended 10:34:55: InstallInitialize. Return value 1.
Action start 10:34:55: RemoveExistingProducts.
Action ended 10:34:55: RemoveExistingProducts. Return value 1.
Action start 10:34:55: ProcessComponents.
Action ended 10:34:55: ProcessComponents. Return value 1.
Action start 10:34:55: UnpublishFeatures.
Action ended 10:34:55: UnpublishFeatures. Return value 1.
Action start 10:34:55: RemoveRegistryValues.
Action ended 10:34:55: RemoveRegistryValues. Return value 1.
Action start 10:34:55: RemoveShortcuts.
Action ended 10:34:55: RemoveShortcuts. Return value 1.
Action start 10:34:55: RemoveFiles.
Action ended 10:34:55: RemoveFiles. Return value 1.
Action start 10:34:55: InstallFiles.
Action ended 10:34:55: InstallFiles. Return value 1.
Action start 10:34:55: RunInitialize.
Action ended 10:34:55: RunInitialize. Return value 1.
Action start 10:34:55: CreateShortcuts.
Action ended 10:34:55: CreateShortcuts. Return value 1.
Action start 10:34:55: WriteRegistryValues.
Action ended 10:34:55: WriteRegistryValues. Return value 1.
Action start 10:34:55: RegisterUser.
Action ended 10:34:55: RegisterUser. Return value 1.
Action start 10:34:55: RegisterProduct.
Action ended 10:34:55: RegisterProduct. Return value 1.
Action start 10:34:55: PublishFeatures.
Action ended 10:34:55: PublishFeatures. Return value 1.
Action start 10:34:55: PublishProduct.
Action ended 10:34:55: PublishProduct. Return value 1.
Action start 10:34:55: InstallFinalize.
CAQuietExec:  Windows Azure Storage Emulator 3.0.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 10:38:33: InstallFinalize. Return value 3.
Action ended 10:38:34: INSTALL. Return value 3.
Property(S): UpgradeCode = {CF5CD495-AEDE-42DA-B7CF-A70D398D4E6A}
Property(S): RunInitialize = "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator\WAStorageEmulator.exe" init -forcecreate -autodetect
Property(S): DOTNET4FULL = 4.5.51641
Property(S): LOCALDBINSTALLED = C:\Program Files (x86)\Microsoft SQL Server\110\LocalDB\Binn\SqlUserInstance.dll
Property(S): SQLEXPRESSVERSION = 10.0.2531.0
Property(S): TARGETDIR = G:\
Property(S): StorageEmulatorMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Azure\Storage Emulator\
Property(S): STORAGEEMUDIR = C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator\
Property(S): WixUIRMOption = UseRM
Property(S): ALLUSERS = 1
Property(S): ARPNOMODIFY = 1
Property(S): REINSTALLMODE = amus
Property(S): WindowsAzureMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Azure\
Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(S): WINDOWSAZUREDIR = C:\Program Files (x86)\Microsoft SDKs\Windows Azure\
Property(S): MICROSOFTSDKSDIR = C:\Program Files (x86)\Microsoft SDKs\
Property(S): ProgramFilesFolder = C:\Program Files (x86)\
Property(S): SourceDir = C:\Users\win8\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.3.0\1356EC2B8E2DBE40C737E5555DD11DFA1BE1AB47\
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 = {6DFDA7BE-32F0-4E6F-B304-3567E656D18C}
Property(S): ProductLanguage = 1033
Property(S): ProductName = Windows Azure Storage Emulator - v3.0
Property(S): ProductVersion = 3.0.6848.39
Property(S): ErrorDialog = ErrorDlg
Property(S): SecureCustomProperties = NEWERVERSIONDETECTED;OLDEMULATORPACKAGEDETECTED;OLDERVERSIONDETECTED
Property(S): WixPdbPath = o:\bttemp\149736\obj.amd64fre\services\xstore\rdpackages\storageemulatorpackage\objfre\amd64\en-us\WindowsAzureStorageEmulator.wixpdb
Property(S): MsiLogFileLocation = C:\Users\win8.hub\AppData\Local\Temp\WindowsAzureStorageEmulator.txt
Property(S): PackageCode = {C5E0C90F-EFDF-4030-8F5D-2A3AF97D8B80}
Property(S): ProductState = -1
Property(S): PackagecodeChanging = 1
Property(S): REBOOT = ReallySuppress
Property(S): CURRENTDIRECTORY = C:\WINDOWS\SysWOW64
Property(S): CLIENTUILEVEL = 3
Property(S): CLIENTPROCESSID = 5180
Property(S): VersionDatabase = 200
Property(S): VersionMsi = 5.00
Property(S): VersionNT = 603
Property(S): VersionNT64 = 603
Property(S): WindowsBuild = 9600
Property(S): ServicePackLevel = 0
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\win8.hub\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\win8\AppData\Roaming\
Property(S): FavoritesFolder = C:\Users\win8\Favorites\
Property(S): NetHoodFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
Property(S): PersonalFolder = C:\Users\win8\Documents\
Property(S): PrintHoodFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
Property(S): RecentFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\Recent\
Property(S): SendToFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\SendTo\
Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
Property(S): CommonAppDataFolder = C:\ProgramData\
Property(S): LocalAppDataFolder = C:\Users\win8\AppData\Local\
Property(S): MyPicturesFolder = C:\Users\win8\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 = 8142
Property(S): VirtualMemory = 5083
Property(S): AdminUser = 1
Property(S): MsiTrueAdminUser = 1
Property(S): LogonUser = win8
Property(S): UserSID = S-1-5-21-1097169495-1557939910-592522955-27415
Property(S): UserLanguageID = 1033
Property(S): ComputerName = win8
Property(S): SystemLanguageID = 1033
Property(S): ScreenX = 1024
Property(S): ScreenY = 768
Property(S): CaptionHeight = 23
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 = 10:38:34
Property(S): Date = 4/25/2014
Property(S): MsiNetAssemblySupport = 4.0.30319.33440
Property(S): MsiWin32AssemblySupport = 6.3.9600.16384
Property(S): RedirectedDllSupport = 2
Property(S): MsiRunningElevated = 1
Property(S): Privileged = 1
Property(S): USERNAME = win8
Property(S): DATABASE = C:\WINDOWS\Installer\fab232b.msi
Property(S): OriginalDatabase = C:\Users\win8\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.3.0\1356EC2B8E2DBE40C737E5555DD11DFA1BE1AB47\WindowsAzureStorageEmulator.msi
Property(S): UILevel = 2
Property(S): ACTION = INSTALL
Property(S): ROOTDRIVE = G:\
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\win8\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.3.0\1356EC2B8E2DBE40C737E5555DD11DFA1BE1AB47\
Property(S): SourcedirProduct = {6DFDA7BE-32F0-4E6F-B304-3567E656D18C}
Property(S): ProductToBeRegistered = 1
MSI (s) (34:88) [10:38:34:039]: Product: Windows Azure Storage Emulator - v3.0 -- Installation failed.

MSI (s) (34:88) [10:38:34:039]: Windows Installer installed the product. Product Name: Windows Azure Storage Emulator - v3.0. Product Version: 3.0.6848.39. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.

=== Logging stopped: 4/25/2014  10:38:34 ===
Run Code Online (Sandbox Code Playgroud)

我看到了这个答案,但不明白他的意思

我只是手动删除它们.重新创建了v11.0:

sqllocaldb stop v11.0
sqllocaldb delete v11.0
sqllocaldb create v11.0
Run Code Online (Sandbox Code Playgroud)

并重新安装......

我看到了这2个文件

WAStorageEmulatorDb30.mdf
WAStorageEmulatorDb30_log.ldf
Run Code Online (Sandbox Code Playgroud)

但它仍然无法安装.

编辑2

这是我看到的错误

Log Name:      Application
Source:        SQLLocalDB 11.0
Date:          5/5/2014 9:44:32 AM
Event ID:      267
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      chobo2
Description:
LocalDB instance is corrupted. See the Windows Application event log for error details.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="SQLLocalDB 11.0" />
    <EventID Qualifiers="35269">267</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-05-05T16:44:32.000000000Z" />
    <EventRecordID>74923</EventRecordID>
    <Channel>Application</Channel>
    <Computer>chobo2</Computer>
    <Security />
  </System>
  <EventData>
  </EventData>
</Event>


Log Name:      Application
Source:        SQLLocalDB 11.0
Date:          5/5/2014 9:44:32 AM
Event ID:      261
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      chobo2
Description:
Cannot access LocalDB instance folder: %%LOCALAPPDATA%%\Microsoft\Microsoft SQL Server Local DB\Instances\<instance name>.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="SQLLocalDB 11.0" />
    <EventID Qualifiers="35269">261</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-05-05T16:44:32.000000000Z" />
    <EventRecordID>74922</EventRecordID>
    <Channel>Application</Channel>
    <Computer>chobo2</Computer>
    <Security />
  </System>
  <EventData>
  </EventData>
</Event>
Run Code Online (Sandbox Code Playgroud)

小智 51

我在更新到v2.5时遇到了类似的问题.我尝试了各种博客和technet论坛中概述的所有内容,但没有运气,但似乎给出的建议是正确的,对我的情况略有不同.

  • 卸载所有以前版本的azure sdks
    • 可选,可能与解决我的问题无关. 我卸载了所有azure sdks,创作工具,VS的azure工具,.Net的azure库,存储模拟器和计算模拟器.
  • 删除WAStorageEmulatorDb文件
    • 接下来是清理以前的任何WAStorageEmulator数据库文件.对于大多数用户来说,这些似乎保持c:\users\{user}\WAStorageEmulatorDb*.*.
      • sqllocaldb stop v11.0
      • sqllocaldb delete v11.0
      • 手动删除c:\ users\{user}\WAStorageEmulatorDb*.*
      • sqllocaldb create v11.0
  • 此时,通过Web Platform Installer重新安装Azure SDK 2.5无法安装,但出现以下错误.
    • CAQuietExec: Windows Azure Storage Emulator 3.0.0.0 command line tool CAQuietExec: Error: Cannot create database. CAQuietExec: Error 0xfffffff3: Command line returned an error. CAQuietExec: Error 0xfffffff3: CAQuietExec Failed
  • 这是我注意到我的环境不同的地方.运行sqllocaldb info我注意到我有4个实例,V11.0,两个托管个人数据库的实例和第四个名为MSSQLLocalDB的实例.如果您(localdb)\MSSQLLocalDBVisual Studio - SQL Server对象资源管理器中打开,您应该看到WAStorageEmulatorDb.对我来说问题是我的WAStorageEmulatorDb没有像其他人一样存储在v11.0中,所以删除v11.0没有帮助.
  • 再次删除WAStorageEmulatorDb文件.所以现在我知道我的WAStorageEmulatorDb在哪里,我重新运行了以下内容
    • sqllocaldb stop MSSQLLocalDB
    • sqllocaldb delete MSSQLLocalDB
    • sqllocaldb create MSSQLLocalDB
  • 通过Web Platform Installer 重新安装Azure SDK 2.5已成功完成.
  • 最后,运行c:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\WAStorageEmulator.exe init然后c:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\WAStorageEmulator.exe start成功启动.
    • 要验证您还应该有新c:\users\{user}\WAStorageEmulatorDb34.*文件.

  • 我遇到了同样的问题,使用Azure存储模拟器4.0更新到v2.6并且无法使其工作.删除`MSSQLLocalDB`是关键. (6认同)
  • 同样在这里.删除MSSQLLocalDB后安装顺利进行. (4认同)
  • 非常感谢!MSSQLLocalDB在我的案例中也引起了问题...... (4认同)
  • 我还必须删除c:\ users\{user}\AzureStorageEmulatorDB*.*才能使其正常工作. (4认同)

小智 12

您引用的解决方案也适用于您,我们可以使用命令清理这些有问题的文件.

那篇文章告诉你使用powershell执行这些命令.以管理员身份打开powershell(或从admin cmd.exe提示符键入powershell)并键入以下内容:

sqllocaldb stop v11.0
sqllocaldb delete v11.0
del %UserProfile%\WAStorageEmulatorDb30*.*
sqllocaldb create v11.0
Run Code Online (Sandbox Code Playgroud)

  • `delete`应该是`del`而`win8`应该是`{username}`.这完美无瑕.关键部分是删除WAStorageEmulatorDB30文件. (2认同)

Sim*_*n W 0

我注意到转储中存在混合驱动器号(C:\、G:\、O;)。请注意,代码 1603 可能来自尝试从某些位置(例如共享驱动器或网络驱动器)进行安装。我建议尝试向后工作 - 也许尝试从本地驱动器上的已知位置重新安装 WebPI,并确保它不会尝试将内容转储到其他地方。您是否以具有提升(管理员)权限的用户身份运行此程序?