简体   繁体   English

没有管理员的WCF HTTP自托管?

[英]WCF HTTP self-hosting without admin?

Is there any way of starting a HTTP WCF service from a regular, non-admin application manually? 有什么方法可以从常规的非管理员应用程序手动启动HTTP WCF服务吗? All I want is my regular desktop application to listen on a port where some things can be controlled remotely. 我想要的只是我的常规桌面应用程序在可以远程控制某些功能的端口上侦听。

I could go the manual route and use my own TcpListener, parse HTTP (or any other protocol), go through some reflection, then respond back on TCP, but I'd like to use WCF to avoid boilerplate. 我可以使用手动路由并使用自己的TcpListener,解析HTTP(或其他协议),进行一些反射,然后在TCP上进行响应,但是我想使用WCF来避免样板。

A partial workaround is to use http://localhost:80/Temporary_Listen_Addresses/ if that's acceptable in your situation (not in mine though). 如果您的情况可以接受,则可以使用http:// localhost:80 / Temporary_Listen_Addresses /作为部分解决方法(尽管在我的情况下不行)。 This URL magically doesn't require additional permissions. 这个URL神奇地不需要其他权限。 source 资源

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM