HttpListener.Start() AccessDenied error on Vista

前端 未结 2 915
盖世英雄少女心
盖世英雄少女心 2020-12-15 08:33

Running this code as a regular user throws HttpListenerException (access denied). Snippet runs ok as an administator

class Program
{
    static void Main(st         


        
2条回答
  •  借酒劲吻你
    2020-12-15 09:10

    Is that URI already registered on the system?

    http://msdn.microsoft.com/en-us/library/system.net.httplistenerexception.aspx says that would be one cause.

提交回复
热议问题