得到以下错误..。
'/‘应用程序中的服务器错误。IIS指定的身份验证方案'IntegratedWindowsAuthentication,匿名‘,但绑定只支持一个认证方案的规范。有效的身份验证方案包括摘要、协商、NTLM、Basic或匿名。更改IIS设置,以便只使用单个身份验证方案。描述:在执行当前web请求时发生了未处理的异常。请查看堆栈跟踪以获得有关错误的更多信息,以及它起源于代码的位置。 异常详细信息: System.InvalidOperationException: IIS指定的身份验证方案'IntegratedWindowsAuthentication,匿名‘,但是绑定只支持一个认证方案的规范。有效的身份验证方案包括摘要、协商、NTLM、Basic或匿名。更改IIS设置,以便只使用单个身份验证方案。 源错误: 在执行当前web请求期间生成一个未处理的异常。有关异常的起源和位置的信息可以使用下面的异常堆栈跟踪来标识。 堆栈跟踪: InvalidOperationException: IIS指定的身份验证方案'IntegratedWindowsAuthentication,匿名‘,但是绑定只支持一个认证方案的规范。有效的身份验证方案包括摘要、协商、NTLM、Basic或匿名。更改IIS设置,以便只使用单个身份验证方案。System.ServiceModel.Web.WebServiceHost.SetBindingCredentialBasedOnHostedEnvironment(ServiceEndpoint serviceEndpoint,AuthenticationSchemes supportedSchemes) +446264 System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost主机,IDictionary2 implementedContracts,String multipleContractsErrorMessage) +709 System.ServiceModel.Web.WebServiceHost.OnOpening() +203 Microsoft.ServiceModel.Web.WebServiceHost2.OnOpening() in e:\bt\3781\Microsoft.ServiceModel.Web\Microsoft.ServiceModel.Web\WebServiceHost2.cs:69 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时值) +229 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +121 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479 ServiceActivationException:由于编译期间出现异常,服务'/Service.svc‘无法激活。例外消息是: IIS指定的身份验证方案'IntegratedWindowsAuthentication,匿名‘,但是绑定只支持一个认证方案的规范。有效的身份验证方案包括摘要、协商、NTLM、Basic或匿名。更改IIS设置,以便只使用单一身份验证方案。 System.ServiceModel.AsyncResult.End(IAsyncResult结果) +11599786 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult结果) +194 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication上下文,布尔flowContext) +176 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object发件人,EventArgs e) +278 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,布尔& completedSynchronously) +75 版本信息:微软.NET框架版本:2.0.50727.3615;ASP.NET版本:2.0.50727.3618
发布于 2011-03-21 16:17:00
根据上面的错误,您的Windows2003机器上有配置IIS身份验证,允许两种不同类型的身份验证(集成和匿名)。将其更改为一种身份验证类型--与您的WCF配置相匹配的身份验证。我猜您只希望在IIS配置中启用匿名(而不是集成),但这是您的设计选择。
https://stackoverflow.com/questions/5376877
复制相似问题