如何在后台asp.net c#中运行windows应用程序?

如何在后台asp.net c#中运行windows应用程序?

问题描述:

在桌面背景中运行我的Windows应用程序表单asp.net c#以在预约时显示提醒消息请帮助我必须做的事情

Ineed to run my windows application form asp.net c# in the desktop background to show the reminder message when there is an appointment please help me what i must do s

嗨Roweids,



据我所知,你厌倦了从托管服务器运行桌面应用程序。



这是一个非常糟糕的想法从Web应用程序运行桌面应用程序,如Per CAS [ ^ ]。



当一个Web应用程序在IIS上运行时,它在某个用户下运行,你的Windows应用程序将限制为该用户,但有某种方式可以让exe完全信任它的弱点。



如何实现它:



您可以使用Windows服务执行与exe相同的工作。



示例: http://www.stevenkuhn.net/blog/2012/02/02/triggering-events-in-a-windows-service-from-an-asp-dot-net -site-using-redis / [ ^ ]与Ninject



http://www.codedblog.com / 2007/09/01 / calling-a-windows-service-from-aspnet-via-remoting-ipcchannel / [ ^ ]使用Remoting





仅在需要批量处理时才推荐使用。
Hi Roweids,

As I understand you are tiring to run desktop application from hosted server.

This is a very bad Idea to run a desktop Application from a Web Application as Per CAS[^].

When a web application runs on IIS it run under certain user and your windows application will restrict to that user, but there are certain way which can allow that exe to run with full trust its vulnerable.

How to achieve it :

You can use Windows service to do the same as exe.

Examples : http://www.stevenkuhn.net/blog/2012/02/02/triggering-events-in-a-windows-service-from-an-asp-dot-net-site-using-redis/[^] with Ninject

http://www.codedblog.com/2007/09/01/calling-a-windows-service-from-aspnet-via-remoting-ipcchannel/[^] Using Remoting


Its only recommended when you required some batch processing.