Deploy dotNET/C# EXE or DLL Via Web Application

Posted on 2004-04-15
Last Modified: 2011-10-03
I have heard that there is a way to deploy EXE/DLLs via a Web application using the dotnet Framework.
Basically, I want to write an application that is available at http://server/MyApplication.exe which clients can access and it will run locally with whatever permissions the user has.  This is very similar to Active-X controls, but I have heard that there is a much easier way to do it then Active-X controls.

Someone mentioned creating a "Windows Control Library" and then accessing that directly, I made a dummy one, but couldn't get it to work.  I know that in dotnet 2.0, there is something called "Click Once" and I am not sure how that fits in.

So, how can I write an application that can be accessed via a URL and run locally on the machine.
Ideally, it would know if there was a previous install and whether it was newer version or not.

Question by:winterminute
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2

Expert Comment

ID: 10840422
The best and most complete example of web deployment ( dotnet exes ) I've every seen is Chris Sells Wahoo. It also has full source availability and security discussions. He covers the subject in Chapter 15 of his book "Windows Forms Programming in C#"

Author Comment

ID: 10844778
Well, that's pretty much what I was looking for, but understanding it is another question.  It looks like he is using a Windows Control.  Is there a much simplier version available?  i.e. Hello World app that uses this technology?

Author Comment

ID: 10844832
I just came across this which might prove useful, written by Chris Sells who now works at Microsoft:
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 10844918
And here is a walk-thru of Wahoo by Chris sells

Author Comment

ID: 10846727
I got this working, but I can't get the automatic versioning.
I can succesfully run the application over the intranet, but when I make changes and rebuild, the client loads the old version.  I have to clear the IE cache to get it to load the new version.  I read somewhere that if you don't sign your assemblies then you lose the automatic versioning, so I went ahead and did that.

Any ideas?

Expert Comment

ID: 10869417
I havent signed my assemblies and they download fine, even dependant assemblies....( you are copying them to the server?)

One of the controlling influences of wether a dll is downloaded is the modification date of the file, this is a http thing if the date is different to the clients cached copy then it will get downloaded.

btw the assembly will be copied to a special location in the the GAC to list installed downloaded assemblies you have to use the gacutil cmd line with -ldl option ie "gacutil -ldl" see gacutil /? for the switches to clear it.

I don't have my trusty "Windows Forms programming with C#" to hand at the minute but I'm sure the details are in there.......

Author Comment

ID: 10875324
Actually, it gets copied to the Temp Internet Files directory.  You can see it there with your cookies, etc.  It might also do something wih the GAC but I know that deleting it from the temp files will force the re-download.

I found out why it wasn't updating, err...rather, I fixed it, but I don't know why or how.  Basically, I created a new Virtual Directory and it started working.  Both VDs appeared identical, but not sure what the difference was.

Accepted Solution

ee_ai_construct earned 0 total points
ID: 11756993
PAQed, with points refunded (125)
ee_ai_construct - CS Mod

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Save json data from URL using SSIS 1 72
Dictionary and array of [N] size - performance tuned 12 49
c#, case, if 4 35
convert Absolute path to relative path of FTP location 7 47
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question