Re: Trigger action in C# executable from web application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Passiday wrote:
[...]
I am now wondering if we could set it up in more elegant way:
1) Have a local C# app triggering regularly far web server "is there
anything for printing".
- pros: seems simple to implement
- cons: regular far webserver triggering sounds like bad architecture.
Also delays could be a problem.
2) Have a local C# app that acts as simple http server
- pros: sounds like the most direct way to pass down info to local app
from the browser
- cons: potential security problems? Could be complex to develop?

Maybe there is some other smart idea how a local process can be
triggered from a web app?

Why does it have to be a local process other than the web application? Can a web application not print? I see Javascript-based pages print all the time (or at least, invoke the print dialog so the browser can print). And I've seem web applications that can download and save files to my computer, so how is it that your web application cannot be designed to somehow place a file in the correct place?

(These are rhetorical questions...I don't personally need an answer to them, I'm just asking them as a way of prompting some thought along those lines).

It seems to me that you really should be asking your question in a newsgroup where questions about web applications are specifically on-topic. There you may find advice from someone who knows how your web application can directly handle the printing needed, rather than using an independent process the web application needs to communicate with.

Barring that, certainly I'd agree that having a local program with which the web application can communicate directly is much better than having the web application notify a remote server that the local program is polling on a regular basis.

As far as security problems go, I suppose it's true that any time you've got a process running that can accept data from an external source, there's a potential for issues. But using .NET, hopefully the biggest threat would be some kind of denial-of-service or abuse-of-service, and if you accept requests only from local IP addresses, that should be minimized.

If I were you, I'd post my question to a more relevant newsgroup, and see if there is better advice from people actually writing web applications on a regular basis, including the possibility that someone can explain to you how to get the printing to work without a separate process at all.

Pete
.



Relevant Pages

  • Re: COM+ file access has heavy kernel mode overhead
    ... The COM+ application ends up using much more kernel mode ... If you need the COM+ server app you might want to change or better ... compare the runtime of the COM+ object with the regular application I ...
    (microsoft.public.vc.atl)
  • Re: Selling the boss on a "publish to the web" Access app?
    ... Go to www.officelive.com, this free small business edition is only available to North America customers right now however. ... Are the users app specific where certains users can log into that app or have rights to it but not others? ... The person coming in the door that wants to sell new carpets or new desks or a new paint job on the walls or even a new computer has to justify that they're going to save the company money. ... I suppose you could bring in a whole bunch of IT people, and go through all enormous expenses and dangers of security of setting up a web host server. ...
    (comp.databases.ms-access)
  • Re: Homegrown synchronization
    ... to check for update files in the Import DropBox for the server. ... similar to the import code used to update a remote backend). ... code to close the "sync" app. ... synch app, but only one at a time would be able to do synchs. ...
    (microsoft.public.access.replication)
  • RE: Beginners Questions
    ... We do use Windows form on the presentation layer which is on ... terminal server and call web services on the business logic side. ... of using "proxy" authentication on SQL Server. ... > I have written an app with a Windows Forms UI that is deployed to clients ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Ruby Enterprise App Design Advice
    ... Load balanced to send user to best server. ... FastCGI or SCGI - We would like to replace FastCGI with something ... certain instance and want to have a single session server (if I understand ... deals with login and logout and assigns an app server. ...
    (comp.lang.ruby)