【问题标题】:Visual Studio 2012 Crashes while deploying windows phone application部署 Windows Phone 应用程序时 Visual Studio 2012 崩溃
【发布时间】:2014-06-02 17:26:29
【问题描述】:

我正在开发一个 Windows Phone 应用程序并尝试将其部署在模拟器和实际设备上,每当我点击调试按钮时,Visual Studio 就会崩溃并重新启动。我也试过用管理员权限运行它。

我检查了事件日志,错误在 Phone tools/conman2.dll 中

异常如下:

日志名称:应用程序应用程序:devenv.exe 框架版本: v4.0.30319 描述:进程因未处理而终止 例外。异常信息:System.AccessViolationException 堆栈:
在 Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManServerClass.ConnectDevice() 在 Microsoft.SmartDevice.Connectivity.Device.Connect() 在 Microsoft.SmartDevice.Connectivity.Wrapper.ConnectivityWrapper11.CreateConnectedDeviceInstance(Microsoft.SmartDevice.Connectivity.Device) 在 Microsoft.SmartDevice.MultiTargeting.Connectivity.ConnectableDevice.Connect() 在 Microsoft.VisualStudio.CommonProject.SmartDevice.Deploy.DeployTask.Execute() 在 Microsoft.VisualStudio.SmartDevice.ProjectSystem.SilverlightMobileVSProjectFlavorCfg.Deploy(System.Object) 在 System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) 在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object,布尔值)在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object,布尔值)在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() 在 System.Threading.ThreadPoolWorkQueue.Dispatch() 在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

我无法解决问题我也尝试运行 devenv.exe /resetuserdata 但没有帮助。

我是否缺少任何配置?

【问题讨论】:

    标签: visual-studio visual-studio-2012 windows-phone-8 visual-studio-debugging windows-phone-toolkit


    【解决方案1】:

    我认为,只要您想在真实设备中部署应用程序,就必须在发布模式下运行该应用程序。看看这个视频中包含一个很好的解释 http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/Part-8-Understanding-Compilation-and-Deployment

    【讨论】:

    • 您也可以在真机上部署调试版。
    猜你喜欢
    • 2021-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-25
    • 1970-01-01
    相关资源
    最近更新 更多