Windows Azure RDP上的基本身份验证存在问题

Windows Azure RDP上的基本身份验证存在问题,azure,basic-authentication,Azure,Basic Authentication,我在Azure平台上托管了一个WCF服务,并在启用了web.config的基本身份验证中,如下所示 <system.serviceModel> <services> <service behaviorConfiguration="SimpleServiceBehavior" name="RestService.RestServiceImpl"> <endpoint address="http://localhost/RestWCFDemo/R

我在Azure平台上托管了一个WCF服务,并在启用了web.config的基本身份验证中,如下所示

<system.serviceModel>
<services>
  <service behaviorConfiguration="SimpleServiceBehavior" name="RestService.RestServiceImpl">
    <endpoint address="http://localhost/RestWCFDemo/RestServiceImpl.svc" binding="webHttpBinding" bindingConfiguration="secureBasic" contract="RestService.IRestServiceImpl" behaviorConfiguration="HttpEnableBehavior" />
  </service>
</services>
<bindings>
  <webHttpBinding>
    <binding name="secureBasic">
      <security mode="TransportCredentialOnly">
        <transport clientCredentialType="Basic"></transport>

      </security>
    </binding>
  </webHttpBinding>
</bindings>
<behaviors>
  <endpointBehaviors>
    <behavior name="HttpEnableBehavior">
      <webHttp />
    </behavior>
  </endpointBehaviors>
  <serviceBehaviors>
    <behavior name="SimpleServiceBehavior">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
    <behavior name="">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />

在Azure上,它没有运行。在本地,我在IIS上托管了此服务并启用了基本身份验证,然后当我从URL访问它时,它将要求提供凭据,就像我禁用了除基本身份验证以外的所有身份验证方法一样。我仍然无法运行此服务。可能是什么问题?有人能提出解决方案吗?

您可以尝试在您的传输中添加代理凭证类型:

<transport clientCredentialType="Basic" proxyCredentialType="Basic"/>
我还将includeExceptionDetailInFaults设置为true,这样如果不起作用,您可以更好地看到问题