none
desktop app converter error info "System.IO.__Error.WinIOError" RRS feed

  • 问题

  • When I converted my app with "Desktop App converter", I got the error info:

    Inner Exception[0]:
    System.IO.IOException: The file cannot be created when the file has already existed.

        System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
        System.IO.DirectoryInfo.MoveTo(String destDirName)
        Microsoft.PowerShell.Commands.FileSystemProvider.MoveDirectoryInfoItem(DirectoryInfo directory, String destination, Boolean force)
    Inner Exception Stack Trace[0]
        System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
        System.IO.DirectoryInfo.MoveTo(String destDirName)
        Microsoft.PowerShell.Commands.FileSystemProvider.MoveDirectoryInfoItem(DirectoryInfo directory, String destination, Boolean force)
    [2018-07-09T07:12:16] The full error record is saved in the logs at C:\DesktopAppConverter\244d12e9-3d08-4c1f-bd40-ffe0f380d58b\logs

    Some more info in the log file:

    [2018-07-09T07:12:15] Moving contents from "C:\vfs0\Program Files (x86)\GraphicsConverterProW10" to "C:\pkg0"
    [2018-07-09T07:12:15] An error occurred converting your application. Here is the full error record:
    [2018-07-09T07:12:16]

    PowerShell Error Record:
    The file cannot be created when the file has already existed.

    PowerShell Stack Trace:
    CreateKnownFolderLayout、C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\converter_util\VfsTokenizer.ps1: Line 55
    在 <ScriptBlock><Process>、C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1 : Line 800


    2018年7月8日 23:57

答案

  • 清除一下C:\pkg的文件, 或是直接删这个目录


    专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms

    2018年7月9日 0:12

全部回复

  • 清除一下C:\pkg的文件, 或是直接删这个目录


    专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms

    2018年7月9日 0:12
  • DesktopAppConverter打包Appx提交到Windows store, 出错

    我用如下命令通过DAC打包生成Appx,

    DesktopAppConverter.exe -Installer C:\myapp\PackageFiles\ -AppExecutable “myApp.exe”-Destination C:\myapp -PackageName "myAppforW10"  -Publisher "CN=xxxx-1xxx-xx9B-xxC5-xxxxxF6DAF2C"  -Version 4.3.0.0 -PackageArch "x86"  -PackagePublisherDisplayName "myCompany" -MakeAppx -Sign -Verbose

    在提交时, 显示如下错误:
    Invalid package identity name: myAppforW10(expected: myCompany.1234567EED192)
    Invalid package family name: myAppforW10_4c1znmvt0khkg (expected: myCompany.1234567EED192_4c1znmvt0khkg)
    This package’s manifest (Package/Properties/DisplayName) uses a display name that you have not reserved: myAppforW10

    对于第一个问题,我试图通过加 -AppId 参数来解决, 网上说用"3573207EED192"做参数, 但我试了很多方案都失败, -AppId加任何参数在转换时DAC都提示失败
    第二个问题, 根本没有设置package family name的方案
    2018年7月11日 10:28