是不是iis中不开通匿名访问的权限啊

解决方案 »

  1.   

    允许匿名访问
    我发现启动 ASP.NET Development Server 才不报错
    但是不知道怎么启动它
    因为在VS05里执行调试时它是自动启动的
    而在IIS里浏览它不会启动,怎么办
      

  2.   

    顶一下
    怎么手动启动 ASP.NET Development Server
      

  3.   

    从IIS里开始浏览网页,然后调用web service里的函数时,出现了以下错误信息不能做任何连接,因为目标机器积极地拒绝它。 
    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Net.Sockets.SocketException: 不能做任何连接,因为目标机器积极地拒绝它。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
    [SocketException (0x274d): 不能做任何连接,因为目标机器积极地拒绝它。]
       System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1002194
       System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
       System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431[WebException: 无法连接到远程服务器]
       System.Net.HttpWebRequest.GetRequestStream() +1504573
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +103
       WebSerUserLogin.UserLogin.login(String name, String password) +63
       serLogin.BtnOK_Click(Object sender, EventArgs e) +147
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102