哪位大侠能指教一下,在asp.net与window服务之间如何实现!能直接告诉具体解决办法或者提供相关文档资料都行!小弟跪谢!!!(window服务指的就是window服务应用程序)

解决方案 »

  1.   

    asp.net与window服务之间是如何通信的!!!!
      

  2.   

    pls tell us it is in Server or Server<==>Client?
      

  3.   

    it in server!如果方便可以给出两种情况下的解决办法!还有,希望能够介绍一些资料以供参考!
    分不够再加!再谢!
      

  4.   

    the most efficient way is use COM technical. because most of window service is base on COM now a days.as you know, we also can develop windows service with C# & VB.NET now. so never the less, you have to using the COM or NET Packege, then invoke their function.If the windows service is locate in client side, It is more harder. You should write a IE ActiveX Control to invoke the client side function or.. In fact it is very complex.
      

  5.   

    you can talk more about the service is locate in server!
    thanks!
      

  6.   

    在说详细点吧!就是自己开发的window 服务,要通过何种方式才能与ASP.NET开发的web程序进行通信,具体实现过程是怎样的!请各位高手指点迷津!
    拜谢!!!
      

  7.   

    Pls tell us How you made your Windows Serivce?By Dot Net, COM, Delphi or some others develop tools
      

  8.   

    do you know:1)A service application can be associated with an application.configuraton file. 2)In the service control manager you can append arguments to the path to start the service. This on the general tab of the properties for the service. If you will open the properties of the Alerter service on you system you will see a path that looks like "C:\WINNT\System32\svchost.exe -k LocalService" where "-k LocalService" are input arguments. 3)You can navigate to the System32 folder and launch the service by calling servicename /variableOne /variableTwo. If this doesn't address your needs, be more specific about what you are trying to do and I'll take another go at it... 
      

  9.   

    thank you so much!
    您说的是一种解决的方式,现在要是我希望通过“命名管道”来实现二者高效的互动,或者说是让asp.net web程序充分的使用和调度windows service application.您认为有否可行性或者要如何实现!
      

  10.   

    by my work exprience, the most typical solution is use by the configuraton file.I can tell you more detail:when you add the App.Config file in Visual Studio's the compiler will create a new file by the name of myService.config which does get deployed with (in the same directory as) your service and which the CLR will look for, by that new name, at runtime. Passing parameters in is fairly simple, after the executable is called EVERYTHING to the right of the executables name is stashed in an string array (seperated by spaces) and can be accessed inside your application as: 
    String[] arguments = Environment.GetCommandLineArgs(); where the first element in the array is the path to the executable and then any parameters (again as seperated by spaces) are available are in the subsequent places in the array. If you want the full command line (path + all parameters) you can use: 
    String[] arguments = Environment.CommandLine(); 
    Then you can parse them yourself. I wish that will help you some way
      

  11.   

    在C#中好象没有你所说的相关的内容!
    或许是我表述得不清楚!那我再详细讲一下吧。比方说,我用C#写了一个具有记录机器的硬件版本、时钟频率信息和操作系统版本等功能的windows service。我希望用asp.net写的web应用程序能够根据我的要求向服务发出指令并返回服务所记录的信息.我尝试在设计中添加一个serviceController组件进行控制,但似乎没有成功。我又寄希望于通过命名管道(named pipe)来完成这一功能,但不知道有否可行性,以及具体的实现方式!希望高手指点!
      

  12.   

    vs.net2003 中,新建项目-> vb.net :windows服务
      

  13.   

    If you need more information on this you can refer to this article from MSDN: 
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemenvironmentclassgetcommandlineargstopic.asp I'll think of it with your additional info.
      

  14.   

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/debugging_a_service.aspThis may be helpful to you.
      

  15.   

    what you give me is do i need!
    amanda,thank you very much!!!