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>
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