我有WCF服务在本地机器上运行,以及在这里:现在错误托管在GoDaddy的WCF服务,它正在其他托管
http://aor.weenggs.com/service.svc
,我想在GoDaddy的托管环境,在这里运行相同的服务:
http://pacpservice.dgulf.net/service.svc
我收到错误:
InvalidOperationException: IIS specified authentication schemes 'Basic, 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.]
System.ServiceModel.Web.WebServiceHost.SetBindingCredentialBasedOnHostedEnvironment(ServiceEndpoint serviceEndpoint, AuthenticationSchemes supportedSchemes) +365757
System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) +836
System.ServiceModel.Web.WebServiceHost.OnOpening() +244
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +274
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +206
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +651
我试图联系支持b队但他们并没有真正回答可以帮助我解决问题的问题。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
<buildProviders>
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
</buildProviders>
</compilation>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
我想,这需要一些设置在他们身边的IIS。我试图设置我的目录使用“设置应用程序根”复选框选中/未选中,但没有任何工作。
谁能帮我设置此功能?
你收到什么错误? – abatishchev 2012-07-13 07:34:18
检查http://pacpservice.dgulf.net/service.svc它显示我在该页面上的错误..我可以编辑任何你建议.. IIS指定身份验证方案'基本,匿名',但仅绑定支持完全一个认证方案的规范。有效的认证方案是摘要,协商,NTLM,基本或匿名。更改IIS设置,以便只使用单个身份验证方案。 – hriziya 2012-07-13 07:36:38
我投票结束这个问题作为题外话,因为这应该针对Godaddy客户支持。 – 2016-08-22 03:38:38