Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am not entirely sure if this is possible or even if the guy who suggested to me knows what he's talking about but is it possible to run a c# application through a web browser. I presume he means a bit like how you embed a flash file. Anyway if someone knows and could tell me roughly how difficult it would be that would be appreciated!

Dan
Posted

If you use Silverlight that runs in your browser much like Flash.
If you use WPF then you can also run it in your browser assuming your browser is Internet Explorer :) there are however some things that are not allowed when running a WPF application in a browser, but with full trust the limitations are minimal.
 
Share this answer
 
Comments
DanHodgson88 22-Aug-11 7:59am    
Thanks for that, i am sure the limitations won't effect my app. The app is in WPF at the minute 2 litle questions would it be easier to convert it to silverlight or leave as wpf? Also is it only IE that supports WPF or will firfox etc also support it? Thanks again for the reply!
Simon Bang Terkildsen 22-Aug-11 8:15am    
This post would seem to indicate that that firefox can run your WPF application, but only on Windows as Mono (The linux implementation of .net) does not include WPF.
Simon Bang Terkildsen 22-Aug-11 8:18am    
About converting it to Silverlight; Silverlight has alot more limitations, I've not spend much time with it myself due to these limitations. So I suggest you do not convert your application.
set a
FullTrust
attribute for your page, and use javascript to run your .exe at client end.
 
Share this answer
 
Comments
Simon Bang Terkildsen 22-Aug-11 8:17am    
Then your application already have to be installed on the client and then it doesn't make sense to me. ClickOnce would be an option if the limitations the browser introduces are to much work to workaround.

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