首页 文章

优化失败,错误1104 Windows Phone 8

提问于
浏览
3

I have fixed the bug by uninstalling whole Visual Studio (2012 & 2013) and Windows Phone 8 SDK. Then install back Visual Studio 2012 and Windows Phone 8 SDK again.

我认为在同一台计算机上安装了多个Visual Studio时会发生错误 .


旧线程:

我无法将应用程序部署到手机中

当我部署时,它说“优化失败,错误1104”,并在输出中显示

1>------ Deploy started: Project: PhoneApp1, Configuration: Debug Any CPU ------
1>Deployment of application to device failed.
1>Error: Cancelled
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

我创建一个新的wp8应用程序并部署它,它也显示相同的错误


EDIT NEW: 我已经通过运行XdeCleanup.exe修复了"A specified communication resource (port) is already in use by another application"错误并重新启动计算机,现在它出现了错误1104

NEW OUTPUT:

NuGet package restore started.
Restoring NuGet packages for solution C:\Users\--\documents\visual studio 2012\Projects\---\---.sln.
NuGet Package restored finished for solution C:\Users\--\documents\visual studio 2012\Projects\---\---.sln.
Restoring NuGet packages for project ---.
Restoring NuGet packages listed in file C:\Users\--\documents\visual studio 2012\Projects\---\---\packages.config.
Skipping NuGet package WPtoolkit 4.2013.08.16 since it is already installed.
NuGet Package restored finished for project ---.
All packages are already installed and there is nothing to restore.
NuGet package restore finished.
1>------ Deploy started: Project: ---, Configuration: Debug Any CPU ------
1>Deployment of application to device failed.
1>Error: Cancelled
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

--------

this error happen after i fix "LocalizedString" bug (by delete all folders inside %localappdata%\Microsoft\Phone Tools\CoreCon)

它显示“LocalizedString”在部署之前发生在我的屏幕截图中,它在我清理构建后不会出现

visual studio deploy只有“启动”选项,我部署之前和之后都有错误,请查看图片通过卸载修复并安装wp8 sdk

电脑规格:windows 7,intel atom CPU N2600 1.6GHz

PS:我只调试app到我的手机,而不是通过模拟器

after deploy

4 回答

  • 0

    要避免所有这些类型的问题,请在VS中的Windows Phone App Manifest中验证GUID参数是否存在或静态,而是使用RANDOM关键字 .

    来源:找到"PublisherID" http://msdn.microsoft.com/en-us/library/windows/apps/jj207030(v=vs.105).aspx

  • 1

    请尝试以下方法:

    1-使用Visual Studio和Windows Phone模拟器时关闭Skype . 然后重新启动Visual Studio并再试一次

    2-使用任务管理器结束/终止运行后台的visual studio的任何其他实例,然后重试

    3-使用此link再次下载模拟器图像

    4-最后试试这个:The name "LocalizedStrings" does not exist in the namespace

  • 0

    按照这些步骤希望这可能有所帮助 .

    1)从模拟器/设备卸载您的应用程序 . 2)清理您的解决方案3)重建我们的解决方案4)右键单击您的解决方案并单击部署解决方案,该解决方案在设备或模拟器上明确部署您的解决方案 . 5)现在按F5或运行您的应用程序 .

    我有同样的问题,按照上述步骤解决了我的问题 .

  • 1

    应通过重新启动手机和/或计算机来解决通信端口问题 . 解决此问题的最佳方法是修复Windows Phone SDK .

相关问题