本文介绍了即使在使用httpcfg后,HttpListener访问也被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞!我有一个使用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: Code Snippet推荐答案这里列出了我已尝试过的东西(没有任何改进):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访问也被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-23 02:38