如何在网页中使用wpf浏览器应用程序 [英] how to use wpf browser application in the webpage
问题描述
我创建了一个简单的wpf浏览器应用程序来查找客户端机器的串口com
使用以下链接的帮助
嵌入a。使用WPF的Internet浏览器中的.NET WinForms应用程序 [ ^ ]
我构建我的wpf应用程序并且它对我来说工作正常,但问题是,我想在网页Web应用程序中使用这个wpf浏览器应用程序,
如何在Web应用程序中使用wpf浏览器应用程序?
我在文件夹中发布了我的wpf浏览器应用程序,并将已发布文件夹的所有内容复制到我的webapplication文件夹。
并写下此代码
Hi,
I have created a simple wpf browser application to find the serial port com of the client machine
using help of the following link
Embedding a .NET WinForms Application in an Internet Browser Using WPF[^]
I build my wpf application and its working fine for me,but the problem is, i want to use this wpf browser application in the webpage web application,
How to use the wpf browser application in the web application ?
I publish my wpf browser application in the folder and copy all the content of the published folder to my webapplication folder.
and write this code
<iframe id="iframewpf" runat="server" src="~/WPFHost.xbap" style="width:100%;height:100%" ></iframe>
但是当我运行我的网络应用程序时收到错误
您正在使用的应用程序中发生错误
您可以尝试以下操作:
重新启动应用程序。
单击下面的更多信息链接,了解有关此错误的详细信息。
更多信息更多信息
启动URI:http:// localhost:64586 / WPFHost.xbap
应用程序标识:http:// localhost:64586 / WPFHost.xbap#WPFHost.xbap,Version = 1.0.0.2,
Culture = neutral,PublicKeyToken = 85e39b889da2749b,processorArchitecture = msil / WPFHost.exe,
Version = 1.0.0.2,Culture = neutral,PublicKeyToken = 85e39b889da2749b,processorArchitecture = msil,
type = win32
该应用程序类型已被禁用。
--------- --------------
如何解决这个问题
But when i run my web application am getting error as
An error occurred in the application you were using
You can try the following:
Restart the application.
Click the "More Information" link below for details about this error.
More Information More Information
Startup URI: http://localhost:64586/WPFHost.xbap
Application Identity: http://localhost:64586/WPFHost.xbap#WPFHost.xbap, Version=1.0.0.2,
Culture=neutral, PublicKeyToken=85e39b889da2749b, processorArchitecture=msil/WPFHost.exe,
Version=1.0.0.2, Culture=neutral, PublicKeyToken=85e39b889da2749b, processorArchitecture=msil,
type=win32
This application type has been disabled.
-----------------------
How to solved this problem
推荐答案
请告诉你...是否可以在firefox浏览器中运行wpf浏览器应用程序
pls can you tell ...is it possible to run wpf browser application in firefox browser
这篇关于如何在网页中使用wpf浏览器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!