每当我点击调试按钮Visual崩溃并重新启动时,我都在开发一个windows应用程序,并试图在模拟器和实际设备上部署它。我还尝试过使用管理权限运行它。
我检查了事件日志,错误出现在Phone tools/conman2.dll中
例外情况如下:
日志名称:应用程序:devenv.exe Framework版本: v4.0.30319描述:进程由于未处理的异常而终止。异常信息:System.AccessViolationException堆栈: 在Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManServerClass.ConnectDevice() at Microsoft.SmartDevice.Connectivity.Device.Connect() at Microsoft.SmartDevice.Connectivity.Wrapper.ConnectivityWrapper11.CreateConnectedDeviceInstance(Microsoft.SmartDevice.Connectivity.Device) at Microsoft.SmartDevice.MultiTargeting.Connectivity.ConnectableDevice.Connect() at Microsoft.VisualStudio.CommonProject.SmartDevice.Deploy.DeployTask.Execute() at Microsoft.VisualStudio.SmartDevice.ProjectSystem.SilverlightMobileVSProjectFlavorCfg.Deploy(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.对象)在System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,( System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback的System.Threading.ContextCallback,System.Object,Boolean),System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()的System.Threading.ContextCallback,System.Object(布尔))
我无法解决这个问题,我也试图运行devenv.exe /resetuserdata,但没有帮助。
我在任何配置中失踪了吗?
发布于 2014-04-18 09:03:17
我认为,无论何时要在实际设备中部署应用程序,都必须以发布模式运行应用程序。看这个视频中包含了一个很好的解释http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/Part-8-Understanding-Compilation-and-Deployment
https://stackoverflow.com/questions/23150114
复制相似问题