Win 10通用应用程序,Cordova试图加载闪存 [英] Win 10 Universal App with Cordova trying to load flash

查看:446
本文介绍了Win 10通用应用程序,Cordova试图加载闪存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2015和Apache Cordova的工具构建一个跨平台Cordova应用程序。因此,我使用的工具为Apache Cordova的空白Cordova应用程序(使用TypeScript)。
一切似乎工作正常,但在Windows控制台中有一个奇怪的错误在Windows 10上运行应用程序时:


APPHOST9603:无法加载类ID为{D27CDB6E-AE6D-11CF-96B8-444553540000}的ActiveX插件,应用程序无法加载ActiveX控件。


< blockquote>

这很奇怪,因为我没有取消任何ActiveX插件。至少不会知道...此错误也只有在Windows上运行应用程序时才会显示。



Googling UID带来了这里:这是Shockwave Flash的一些配置,我不是使用任一。



通过使用模板创建一个新项目,将config.xml中所需的Windows平台更改为Windows 10,并开始调试本地Windows 10 PC。



您对如何解决此错误有任何想法吗?这可能是一个错误?



编辑:相同的问题 pre> <!DOCTYPE html>
< html>
< head>
< meta http-equiv =Content-Typecontent =text / html; charset = utf-8/>
< meta charset =utf-8/>
< meta http-equiv =Content-Security-Policycontent =default-src'self'data:gap:https://ssl.gstatic.com'unsafe-eval'; style-src' self''unsafe-inline'; media-src *>
< title> BlankCordovaApp1< / title>

< link href =css / index.css =stylesheet/>
< / head>
< body>
< div class =app>
< p id =devicereadyclass =event>正在连接到设备< / p>
< / div>

< script src =cordova.js>< / script>
< script src =scripts / platformOverrides.js>< / script>
< script src =scripts / appBundle.js>< / script>
< / body>
< / html> MSDN表示(
/msdn.microsoft.com/en-us/library/windows/apps/jj860457.aspxrel =nofollow> https://msdn.microsoft.com/en-us/library/windows/apps/jj860457.aspx ):


使用JavaScript的Windows Runtime应用程序不支持自定义Microsoft
ActiveX控件。如果您需要一个UI控件,请使用HTML控件,
Windows库进行JavaScript控件,或者创建自己的自定义
WinJS控件。如果您需要执行自定义逻辑,请改为创建自定义的
Windows Runtime对象。


使用插件ActiveX。如果您要引用某个网页,并且该网页使用shockwave flash,则可能会导致该问题。根据MSDN,不可能在Windows中显示包含ActiveX插件的页面。因为你不提供代码,我不能精确指定原因,但这是我最好的猜测。


I'm building a cross-platform Cordova app with Visual Studio 2015 and tools for Apache Cordova. Therefore I'm using the Blank Cordova App (with TypeScript) from Tools for Apache Cordova. Everything seems to work fine, except there is a strange error in the JavaScript Console when running the App on Windows 10:

APPHOST9603: "Can’t load the ActiveX plug-in that has the class ID "{D27CDB6E-AE6D-11CF-96B8-444553540000}". Apps can't load ActiveX controls."

This is kind of strange because I'm not unsing any ActiveX plug-in. At least not knowingly... The error is also only visible when running the app on Windows.

Googling the UID brought me here: It is some sort of configuration for Shockwave Flash, which I'm not using either.

One can reproduce the error by creating a new project with the template, changing the desired Windows platform in the config.xml to Windows 10 and starting debugging on a local Windows 10 PC.

Do you have any idea on how to resolve this error? Might this be a bug?

Edit: Same problem here.

Edit: Here is the initially created index.html:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8" />
    <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
    <title>BlankCordovaApp1</title>

    <link href="css/index.css" rel="stylesheet" />
</head>
<body>
    <div class="app">
        <p id="deviceready" class="event">Connecting to Device</p>
    </div>

    <script src="cordova.js"></script>
    <script src="scripts/platformOverrides.js"></script>
    <script src="scripts/appBundle.js"></script>
</body>
</html>

解决方案

MSDN Says (https://msdn.microsoft.com/en-us/library/windows/apps/jj860457.aspx):

Windows Runtime apps using JavaScript don't support custom Microsoft ActiveX controls. If you need a UI control, use an HTML control, a Windows Library for JavaScript control, or create your own custom WinJS control. If you need to perform custom logic, create a custom Windows Runtime object instead.

It seems like in your frame, the plug-in ActiveX is used. If you are referencing a webpage and if the webpage is using shockwave flash, it might cause the problem. According to MSDN, it is not possible display a page which contains ActiveX plugin in Windows. Since you are not providing a code, I cannot exactly specify the reason, but this is my best guess.

这篇关于Win 10通用应用程序,Cordova试图加载闪存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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