简体   繁体   English

是否有适用于服务状态页面的小型可嵌入.Net Web服务器?

[英]Any small embeddable .Net web server suitable for service status pages?

Is there a simple way, perhaps using the standard libraries, to serve a webpage from my windows service? 是否有一种简单的方法(也许使用标准库)通过Windows服务来提供网页?

I'm not looking for anything fancy I'd just like to serve status/control pages for some of my windows services but don't want to rewrite them as web applications. 我并不是想为我的某些Windows服务提供状态/控制页面,而是不想将它们重写为Web应用程序。

HttpListener is your friend, although making a reservation in the HTTP pipeline for non-admin accounts (ie service accounts) is a bit of a pain. HttpListener是您的朋友,尽管在HTTP管道中为非管理员帐户(即服务帐户) 进行保留有点麻烦。 There's a codeplex project that you can hack into a custom action on your service installer. 有一个Codeplex项目,您可以破解服务安装程序上的自定义操作。

What about Cassini which used to come with the .NET development framework? NET开发框架附带的Cassini呢?

http://www.asp.net/downloads/archived-v11/cassini http://www.asp.net/downloads/archived-v11/cassini

You could always check out the code for Cassini. 您总是可以签出Cassini的代码。 It was written for .net 1.1, but I'm sure porting would be easy enough: 它是为.net 1.1编写的,但是我敢肯定移植会很容易:
http://www.asp.net/downloads/archived-v11/cassini http://www.asp.net/downloads/archived-v11/cassini

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 网页状态码 - Status Codes of web pages 有什么方法可以使小型网页在iPhone上显示完整尺寸? - Any way to make small web pages show up full size on iPhone? .net 核心 3.1 Web API 托管为 ZAEA23489CE3AA9B6406EBB28E0CDA 服务未显示页面 - .net core 3.1 Web API hosting as Windows Service not showing pages 有什么方法可以在网页上获取和显示正在运行的服务器进程的状态? - Is there any way to get and show status of a running server process at a web page? 适用于类似Web服务实现的设计模式 - A suitable design pattern for similar web service implementations 服务器上Angular 2网页和ASP.NET Core之间的加密 - Encryption between Angular 2 web pages and ASP.NET Core on the server .NET Web 服务 - Web 服务器配置为不列出此目录的内容 - .NET Web Service - The Web server is configured to not list the contents of this directory ASP.NET网页Web服务调用重定向到about:blank - ASP.NET Web Pages Web Service Calls Redirecting to about:blank .Net Razor 页面错误:没有为实体类型“端点”找到合适的构造函数 - .Net Razor Pages Error: No suitable constructor was found for entity type 'Endpoint' 当Web服务“ B”作为“ A”驻留在服务器上时,是否有从IIS Web服务“ A”调用IIS Web服务“ B”的担忧? - Are there any concerns with calling IIS Web Service “B” from IIS Web Service “A” when Web Service “B” resides on the server as “A”?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM