“您需要为此任务安装应用程序"Windows Phone 8 应用程序错误 [英] "You need to install an app for this task" error with Windows Phone 8 App

查看:45
本文介绍了“您需要为此任务安装应用程序"Windows Phone 8 应用程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Windows Phone 应用程序出现错误您需要为此任务安装应用程序,要在商店中搜索它吗?"在应用程序上,但调试时没有显示任何内容.如果我点击是,它会打开商店并搜索一些东西,但什么也没找到.我该如何解决这个问题?

My Windows Phone app gives me error "You need to install an app for this task do you want to search it on store?" on app but there's nothing shows up on debugging. if i click on yes it opens store and searching for something and founds nothing. how can I solve this?

当我禁用 IsEnabledScript 时它会消失.

edit: it goes away when I disable IsEnabledScript.

推荐答案

让我猜猜:您正在使用 WebControl.您最初导航到的页面可能会尝试通过 Javascript 重定向到具有协议扩展名(如 facebook://)的 URI(这解释了为什么 IsScriptEnabled 没有问题的原因是错误的).

Let me try to guess: you are using a WebControl. The page you initially navigate to probably tries to redirect to an URI that has a protocol extension (like facebook://) via Javascript (that explains why you don't have the problem with IsScriptEnabled is false).

Windows Phone 尝试使用本机应用打开该链接.如果您没有知道如何处理该协议的应用,它会在应用商店中启动搜索以查找能够处理该协议的应用.

Windows Phone tries to open that link with a native app. If you don't have an app that knows how to handle that protocol, it launches a search on the Store to find an app that does.

您可以做的是订阅 WebBrowserNavigating 事件并查看它重定向的位置.

What you can do is subscribe to the Navigating event of the WebBrowser and look where it redirects.

Navigating 事件中,如果您想停止该行为,请将 e.Cancel 设置为 true.

In the Navigating event, set e.Cancel to true if you want to stop that behaviour.

这篇关于“您需要为此任务安装应用程序"Windows Phone 8 应用程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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