Thoughts from Dan Miser RSS 2.0
 Friday, May 12, 2006
While ActiveX has enjoyed a (mostly) deserved reputation for being ill-tempered and hard to work with, I've used it successfully for many years as a deployment vehicle for rich-client web applications that run inside the context of IE. I'll attribute most of that success to Delphi and ActiveForms since the most complicated plumbing is taken care of for me automatically, but still gives me the ability to override what I need. Special thanks should go to Lino Tadros and Steve Teixeira, former members of the Delphi R&D team, to allow this.

Fast forward to today. My goal is relatively simple. I have a .NET application built with WinForms. I'd like the same type of ease of use in deploying this WinForm application to my users. I've done quite a bit of research on the best way to achieve this, but I haven't come up with the perfect solution yet. I'm close, but it's not buttoned up all of the way yet. For starters, I would highly recommend the following articles:

I wasn't able to find this nugget anywhere, though. If you want to call methods from your HTML page via (e.g.) JScript, you need to make your EXE assembly COM visible. The easiest way to do this is to select Properties for the EXE in the Project Manager, and press Assembly Information. There, you'll find a checkbox to make this assembly COM visible.

So far, I've been able to get a WinForm EXE hosted in IE, strong-name it and communicate from the web page to the control. I still have several items left to tackle, like wrapping everything up in a CAB file for easier deployment, and getting calls to other assemblies working. I'll comment on those as I get to them, but if you have any pointers on better ways to do any of this, I'm all ears!

Friday, May 12, 2006 2:29:00 PM (Central Standard Time, UTC-06:00)  #    Comments [3] -
Delphi
Tracked by:
http://9nf-information.info/00786455/index.html [Pingback]
http://9no-information.info/08606912/schwann-frozen-food.html [Pingback]
http://9ne-information.info/90028363/index.html [Pingback]
http://9ne-information.info/48820335/index.html [Pingback]
http://9nm-information.info/93897682/index.html [Pingback]
http://9nk-information.info/92865725/what-are-the-effects-of-computer-piracy.htm... [Pingback]
http://9nh-information.info/29559476/index.html [Pingback]
http://9nv-information.info/22029222/index.html [Pingback]
http://9oo-information.info/17869044/index.html [Pingback]
http://9oa-information.info/49707287/index.html [Pingback]
http://9ou-information.info/70506437/a-problem-caused-windows-defender-service-t... [Pingback]
http://9ob-information.info/03805333/index.html [Pingback]
http://9qi-information.info/78775192/index.html [Pingback]
http://9qb-information.info/44344505/providence-john-brown-house-museum.html [Pingback]
http://9ry-information.info/06189057/index.html [Pingback]
http://9rj-information.info/08798547/index.html [Pingback]
http://9rf-information.info/37952137/index.html [Pingback]
http://9st-information.info/44724043/index.html [Pingback]
http://9rd-information.info/09546232/transportation-from-new-york-city-to-hagers... [Pingback]
http://9rt-information.info/19911272/phase-game-download.html [Pingback]
http://9sj-information.info/25057357/micro-atx-case.html [Pingback]
http://9re-information.info/79866179/download-game-manuals.html [Pingback]
http://9rg-information.info/58318735/index.html [Pingback]
http://9uaee-le-informazioni.info/15028842/index.html [Pingback]
http://9uafo-le-informazioni.info/10892276/index.html [Pingback]
http://9uaea-le-informazioni.info/56733330/olis-rivista-cd-musicale.html [Pingback]
http://9uaen-le-informazioni.info/42711882/index.html [Pingback]
http://9uafm-le-informazioni.info/04940968/valvola-venturi.html [Pingback]
http://9uafi-le-informazioni.info/36320190/asl-ce2.html [Pingback]
http://9uaer-le-informazioni.info/21791440/knights-cross.html [Pingback]
http://9uahs-le-informazioni.info/26286916/javascript-news-scroll.html [Pingback]
http://9uagj-le-informazioni.info/36015947/index.html [Pingback]
http://9uahf-le-informazioni.info/09076713/iis-winxp.html [Pingback]
http://9uahk-le-informazioni.info/92165145/index.html [Pingback]
http://9uahq-le-informazioni.info/29701865/index.html [Pingback]
http://9uagf-le-informazioni.info/46499677/index.html [Pingback]
http://9uahq-le-informazioni.info/99116176/vendita-topo-gigio.html [Pingback]
http://9uahh-le-informazioni.info/04690424/index.html [Pingback]
http://9uahf-le-informazioni.info/11438473/index.html [Pingback]
Friday, May 12, 2006 8:15:00 PM (Central Standard Time, UTC-06:00)
May I suggest you Google on:

clickonce "web deployment" "Chris Sells"
I.P. Nichols
Saturday, May 13, 2006 11:19:00 AM (Central Standard Time, UTC-06:00)
Thanks, I.P. I had already found Wahoo <http://www.sellsbrothers.com/wahoo/> before posting this entry, but I didn't think it would apply. Is that the one you had in mind?



In short, I was hoping to get something that would run *inside* IE (like ActiveX does), as opposed to something that launches an external process outside of IE. The ClickOnce updating is pretty slick, but even there, it looks like I'd have to use a 2-phase approach for deploy (e.g. can't deploy to GAC, and can't specify app location if I understand this right).



Any other thoughts?
Monday, May 15, 2006 8:33:00 AM (Central Standard Time, UTC-06:00)
Since you're building a win forms app, why not use the composite UI Lib and one click deployment for your users? There is a lab that you can download at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/cab.asp



which explains how to do this (I believe it's the last lab). I suppose that your users want to be able to use win forms and "see" some functionality inside a browser too... which would normally require building a companion piece in asp .net for that functionality they wish to see over the net. Trying to get an exe to run inside a browser is illogical IMO since it's really a win form app that has to be downloaded to the client anyhow. Good Luck.
Jonathan
Comments are closed.
Navigation
Archive
<October 2008>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Dan Miser
Sign In
Statistics
Total Posts: 310
This Year: 25
This Month: 1
This Week: 0
Comments: 605
All Content © 2008, Dan Miser
DasBlog theme 'Business' created by Christoph De Baene (delarou)