WebServiceHostFactory and IIS authentication

前端 未结 4 1994
遥遥无期
遥遥无期 2021-02-05 21:19

I encounter a problem with using the WebServiceHostFactory in IIS.

\"IIS specified authentication schemes \'IntegratedWindowsAuthentication, Anonymous\', but the binding

4条回答
  •  盖世英雄少女心
    2021-02-05 21:30

    I'm not sure about the WebServiceHostFactory, but it sounds like you're hosting the service inside IIS and it's got more than one authentication method selected. If you've got IIS 5 or 6, try going into IIS and viewing the properties for the website or virtual directory containing your service. Go to the Directory Security tab, click the Edit button under "Anonymous access and authentication control", and then un-tick either "Anonymous access" or "Integrated Windows authentication". I'm not sure about IIS7.

提交回复
热议问题