如何在ASP.NET中创建Windows服务 [英] How to create a windows service in ASP.NET
本文介绍了如何在ASP.NET中创建Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在asp.net中创建一个Windows服务
我尝试过:
i在windows桌面下创建了一个项目我接下来做什么
i am tried to create a windows service in asp.net
What I have tried:
i have create a project in under windows desktop what i do next
推荐答案
看看 Windows服务中的主机ASP.NET核心:
ASP.NET核心应用程序可以作为Windows服务在Windows上托管,而无需使用IIS。当作为Windows服务托管时,应用程序会在重新启动后自动启动。
查看或下载示例代码。
您无法在asp.net中编写Windows服务, asp.net是一种用于构建网站的技术。如果您使用的是Visual Studio,那么它应该具有您可以使用的服务项目类型。 Google用于编写服务以获取帮助和示例代码。
You can't write a Windows service in asp.net, asp.net is a technology for building websites. If you're using Visual Studio then it should have a service project type you can use. Google for writing services for help and sample code.
这篇关于如何在ASP.NET中创建Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文