A web site code can't connect to a soap service on the same server
问题 My ASP.NET web site calls a .net service from a code in App_Code to retrieve some information. The web service is hosted at http://mydomain/ws/DirectoryService.asmx . Whenever I deploy a web site on any server other then the same server that the required .net service is hosted on, everything works good. Whenever I deploy the site to the same web server, that the web service is hosted on, I get 401.1 error. I have the following binding defined in web.config of the site: <system.serviceModel>