访问其它页面正常,访问.svc文件出现如下提示:
IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.
svc文件源码如下:
<%@ ServiceHost Language="C#" Debug="true" Service="WCF.ServiceLib.Web.Rest" CodeBehind="~/App_Code/Rest.cs" Factory="System.ServiceModel.Activation.WebServiceHostFactory" %>