共享目标应用示例无法正常工作 [英] Sharing Target app sample not working properly

查看:72
本文介绍了共享目标应用示例无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://code.msdn.microsoft .com / windowsapps / Sharing-Content-Target-App-e2689782


当我运行共享内容 目标示例应用程序(C#版本)时,会抛出异常行99. MainPage.xaml.cs:System.Runtime.WindowsRuntime.dll中发生类型'System.Runtime.InteropServices.COMException'的异常,但未处理用户代码中的
WinRT信息:调用请求处理错误。附加信息:无效的窗口句柄。该行执行此操作:Window.Current.Content = this;


 


是否有解决方法或修复此问题?                


我在问答的Q& A标签中问了同样的问题。描述样本的页面,但到目前为止我没有看到任何回复。 Microsoft是否监控样本的Q& A选项卡?

解决方案

您用以重现此步骤的步骤是什么?


通过以下步骤,我的工作正常:


  1. Build&从Visual Studio Express运行示例
  2. 调出IE10
  3. 选择共享魅力
  4. 选择共享目标示例应用程序
  5. 共享目标示例应用程序在示例应用程序中显示有关共享数据的数据
  6. 推送报告已完成。

如果清除现有软件包并重建和部署样本,是否可以重现问题?


- Rob


http://code.msdn.microsoft.com/windowsapps/Sharing-Content-Target-App-e2689782

When I run the sharing content target sample app (C# version), an exception is thrown at line 99 of MainPage.xaml.cs: An exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Runtime.WindowsRuntime.dll but was not handled in user code WinRT information: Invoke request processing error. Additional information: Invalid window handle. The line does this: Window.Current.Content = this;

 

Is there a workaround or fix for this?               

I asked the same question in the Q&A tab of the page that describes the sample, but so far I've seen no response. Does Microsoft monitor the Q&A tabs of the samples?

解决方案

What are the steps you used to reproduce this?

It is working fine for me with the following steps:

  1. Build & run sample from Visual Studio Express
  2. Bring up IE10
  3. Select Sharing charm
  4. Select the Share Target Sample App
  5. The Share Target Sample App displays data about the shared data
  6. Push Report Completed in the sample app.

Can you reproduce the problem if you clear out the existing package and rebuild and deploy the sample?

--Rob


这篇关于共享目标应用示例无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆