Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

1 solution

pls can you tell ...is it possible to run wpf browser application in firefox browser
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900