VS2015在将Windows Phone 8应用程序部署到模拟器时崩溃

6

在使用 Windows Phone 模拟器运行应用程序时,VS2015 崩溃,我尝试了使用 Phone 8.1 和 Windows 10 Mobile 模拟器。虚拟机成功启动,但 VS 无法部署应用程序,最终崩溃。

故障应用程序名称: devenv.exe,版本: 14.0.23107.0,时间戳: 0x559b7ead 故障模块名称: SirepClient.dll,版本: 0.0.0.0,时间戳: 0x559f6024 异常代码: 0xc0000005 故障偏移量: 0x0002c376 故障进程 ID: 0x3770 故障应用程序启动时间: 0x01d123ea21bcb890 故障应用程序路径: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe 故障模块路径: C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Phone Sirep\8.1\SirepClient.dll 报告 ID: d583c604-2aed-41b5-ac84-8223f613cef0 故障包完整名称: 故障的包相关应用程序 ID:


应用程序: devenv.exe Framework 版本:v4.0.30319 描述:进程因未处理异常而终止。异常信息:System.AccessViolationException at Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManServerClass.ConnectDevice() at Microsoft.SmartDevice.Connectivity.Device.Connect() at Microsoft.SmartDevice.Connectivity.Wrapper.ConnectivityWrapper12.CreateConnectedDeviceInstance(Microsoft.SmartDevice.Connectivity.Device) at Microsoft.SmartDevice.MultiTargeting.Connectivity.ConnectableDevice.Connect(Boolean) at Microsoft.VisualStudio.CommonProject.SmartDevice.Deploy.DeployTask.Execute() at Microsoft.VisualStudio.SmartDevice.ProjectSystem.SilverlightMobileVSProjectFlavorCfg.Deploy(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

3个回答

2
这是我的Windows Phone 8.1部署到设备Visual Studio 2015崩溃问题的解决方法:
1)关闭Visual Studio。
2)在启用/解锁您的设备(WinPhone 8.1)进行开发之后;https://msdn.microsoft.com/en-us/library/windows/apps/ff769508 确保下载并安装Windows Phone 8.1 SDK。https://developer.microsoft.com/en-us/windows/downloads/windows-8-1-sdk 3)安装此SDK后,尝试通过SDK连接到您的WinPhone 8.1,这将触发该设备的“特殊更新”。
4)在安装设备更新并重新启动后,启动Visual Studio并部署/调试到您的设备。

通过SDK连接手机是什么意思?你具体指的是哪个应用程序? - Dustin Cleveland
为了触发我提到的Windows 8.1设备更新,必须通过Windows Phone 8.1 SDK 1进行连接,而不是通过VS。 - Alex
1
正如@aaaabcv在他的回答中所说,我认为你所指的应用程序是“Windows Phone Developer Power Tools 8.1”。据我所知,实际上并没有名为“Windows Phone 8.1 SDK”的应用程序。 - Dustin Cleveland

1
我无法对之前的帖子进行评论,以回答关于“SDK工具”的问题。
但他所指的工具实际上是Windows Phone开发人员工具。如果连接设备,它会触发更新并安装powertools运行时。
有趣的是,在成功部署到手机后,我遇到了这个问题。但在重新启动Visual Studio后,我遇到了部署崩溃的问题。
不幸的是,这对我没有解决问题。

1

我几个月前遇到了这个错误,为了解决它,我不得不安装Windows Phone 8 SDK,因为Visual Studio 2015只安装了Windows Phone 8.1 SDK。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接