2012-07-13 49 views
0

我有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。我试图设置我的目录使用“设置应用程序根”复选框选中/未选中,但没有任何工作。

GoDaddy screen for IIS management

谁能帮我设置此功能?

+1

你收到什么错误? – abatishchev 2012-07-13 07:34:18

+0

检查http://pacpservice.dgulf.net/service.svc它显示我在该页面上的错误..我可以编辑任何你建议.. IIS指定身份验证方案'基本,匿名',但仅绑定支持完全一个认证方案的规范。有效的认证方案是摘要,协商,NTLM,基本或匿名。更改IIS设置,以便只使用单个身份验证方案。 – hriziya 2012-07-13 07:36:38

+2

我投票结束这个问题作为题外话,因为这应该针对Godaddy客户支持。 – 2016-08-22 03:38:38

回答

1

由于在错误中它看起来在您的应用程序的IIS上启用了基本身份验证和匿名身份验证,您是否可以要求他们为您禁用基本身份验证,如果您不需要它的话。

+0

我可以从web.config中完成吗? – hriziya 2012-07-13 09:12:07

+1

nope,必须在IIS上完成 - >身份验证 – 2012-07-13 09:41:03

+0

非常感谢!有效! :-) – hriziya 2012-07-13 19:29:54

0

你如何定义你的wcf服务使用哪个绑定?我认为这可能是你遇到的问题的一个因素。

+0

你能告诉我,我需要在哪里定义?如何 ? – hriziya 2012-07-13 09:11:40