错误托管在GoDaddy的WCF服务,这是处理其他托管 [英] Error hosting WCF service on GoDaddy which is working on other hosting

查看:266
本文介绍了错误托管在GoDaddy的WCF服务,这是处理其他托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有WCF服务在本地机器上运行,以及在这里:

I have WCF service running in local machine as well as here:

http://aor.weenggs.com/service.svc

现在,我想在GoDaddy的托管环境,在这里运行相同的服务:

now, I am trying to run the same service at GoDaddy Hosting environment here:

http://pacpservice.dgulf.net/service.svc 

我收到错误:

I am getting the error:

出现InvalidOperationException:IIS指定的认证方案   基本,无名氏',但绑定仅支持规范   只有一个身份验证方案。有效的身份验证方案是   摘要,协商,NTLM,基本或匿名。更改IIS设置   因此,只有单一的认证方案使用。]
  System.ServiceModel.Web.WebServiceHost.SetBindingCredentialBasedOnHostedEnvironment(ServiceEndpoint   serviceEndpoint,AuthenticationSchemes supportedSchemes)365757
  System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost的   主机,IDictionary`2 implementedContracts,字符串   multipleContractsErrorMessage,串standardEndpointKind)836
  System.ServiceModel.Web.WebServiceHost.OnOpening()+244
  System.ServiceModel.Channels.CommunicationObject.Open(时间跨度   超时)+274
  System.ServiceModel.HostingManager.ActivateService(字符串   normalizedVirtualPath)+206
  System.ServiceModel.HostingManager.EnsureServiceAvailable(字符串   normalizedVirtualPath)651

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

我试图联系支持的球队,但他们并没有真正回答这能帮助我解决这个问题的问题。

I tried contacting the support team but they don't really answer the question which could help me solving the issue.

<?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中在自己身边的一些设置。我尝试使用设置应用程序根复选框选中/取消选中,但没有什么工作设置我的目录。

I guess, this requires some setting in IIS at their side. I tried setting the my directory using "Set Application root" checkbox checked/unchecked but nothing is working.

任何人都可以请帮我设置此功能?

Can anyone please help me setting this up?

推荐答案

由于是在它的外观基本和匿名身份验证在IIS上启用了你的应用程序中的错误,你能要求他们禁用基本身份验证为你,如果你不需要它。

As is in the error it looks both Basic and Anonymous authentication are enabled on IIS for your app, Can you ask them to disable Basic authentication for you if you dont need it.

这篇关于错误托管在GoDaddy的WCF服务,这是处理其他托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆