即使在使用httpcfg后,HttpListener访问也被拒绝 [英] HttpListener Access Denied even after using httpcfg
问题描述
我有一个使用HttpListener在Windows应用程序中托管web服务的应用程序。我想在一个useraccount上的 http:// pcname:8081 / 上托管这些网络服务没有管理员权限。我得出结论我得到一个Access Denied错误并开始寻找解决方案。我发现httpcfg应该可以做我想要的。
I have an application that uses HttpListener to host webservices in a windows application. I want to host these webservices on http://pcname:8081/ on a useraccount that does not have Administrator priviliges. I came to the conclusion i get an Access Denied error and started searching for a solution. I found that httpcfg should be able to do what i want.
我在httpcfg中尝试了以下语法管理员帐户并重新启动PC:
I tried the following syntax on httpcfg in an Administrator account and restarted the PC:
推荐答案
< p align = left>
这里列出了我已尝试过的东西(没有任何改进):
Here a list of stuff i already tried (without any improvement):
- 将我的应用程序和httpcfg语法中的端口号更改为端口80。
- Changed port numbers in both my application and the httpcfg syntax to port 80.
- 使用ThinkTecture的httpcfg包装工具( http://www.thinktecture.com/resourcearchive/tools-and-software/httpsyscfg )。
- Used the httpcfg wrapper tool from ThinkTecture (http://www.thinktecture.com/resourcearchive/tools-and-software/httpsyscfg).
- 在每次配置更改之间重新启动PC。
- Restarted PC between every configuration change.
这篇关于即使在使用httpcfg后,HttpListener访问也被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!