silverlight wcf服务提示输入凭据

问题描述:

我有一个调用wcf服务的silverlight应用程序,并且在配置时遇到问题。silverlight wcf服务提示输入凭据

我可以发布文件,但是当应用程序试图访问服务时,它似乎没有得到任何回报。

的应用程序设置为客户端凭据使用Windows身份验证

什么奇怪的是,它不引发错误。 Silverlight应用程序似乎停止了一个空白屏幕。

要测试部署的服务,我尝试从浏览器访问它,并提示输入凭据。我尝试输入我的名字和密码,但它只是再次询问我的凭据。

什么凭证是促使我?

我怎么能通过这个?

这里的客户端配置:

<configuration> 
    <system.serviceModel> 
     <bindings> 
      <basicHttpBinding> 
       <binding name="BasicHttpBinding_IService" maxBufferSize="2147483647" 
        maxReceivedMessageSize="2147483647"> 
        <security mode="TransportCredentialOnly" /> 
       </binding> 
      </basicHttpBinding> 
     </bindings> 
     <client> 

      <endpoint address="../Service.svc" binding="basicHttpBinding" 
       bindingConfiguration="BasicHttpBinding_IService" contract="ServiceReference1.IService" 
       name="BasicHttpBinding_IService" /> 
     </client> 
    </system.serviceModel> 
</configuration> 

这里的web配置:

<configuration> 
    <system.web> 
    <httpRuntime executionTimeout="180" /> 
    <compilation debug="true" targetFramework="4.0" /> 
    <customErrors mode="Off"/> 
    </system.web> 

    <system.serviceModel> 
    <bindings> 
     <basicHttpBinding> 
     <binding name="BasicHttpStreamingBinding" maxBufferSize="2147483647" 
      maxReceivedMessageSize="2147483647" transferMode="Streamed" receiveTimeout="01:00:00" sendTimeout="01:00:00"> 
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" 
      maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> 
      <security mode="TransportCredentialOnly"> 
      <transport clientCredentialType="Windows" /> 
      <!--<transport clientCredentialType="Ntlm" />--> 
      </security> 
     </binding> 
     </basicHttpBinding> 
    </bindings> 

    <client /> 

    <behaviors> 
     <serviceBehaviors> 
     <behavior name=""> 
      <serviceMetadata httpGetEnabled="true" /> 
      <serviceDebug includeExceptionDetailInFaults="true" /> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 

    <serviceHostingEnvironment 
     multipleSiteBindingsEnabled="true" /> 

    <services> 
     <service name="CitationAir.MissionPlanning.WebService.Service"> 
     <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpStreamingBinding" 
      contract="CitationAir.MissionPlanning.WebService.IService" /> 
     </service> 
    </services> 
    </system.serviceModel> 

    <system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"/> 
    </system.webServer> 

使用Windows Authentication,你会得到一个密码提示,如果Integrated Windows Authentication开启off`,这可能是因为你是使用Internet Explorer以外的浏览器。

的密码不会,如果你的工作account is locked out,如果要连接到服务在untrusted domain,或者如果您的帐户没有足够的permissions访问资源。

难道这是这种情况下的任何一种?