2013-02-11 3 views
0

wcf 서비스를 호출하는 실버 라이트 앱이 있는데 배포하는 데 문제가 있습니다.silverlight wcf 서비스 자격증 명 프롬프트

파일을 게시 할 수 있지만 앱이 서비스에 액세스하려고 시도하면 아무 것도 돌아 오지 않는 것 같습니다.

이 앱은 어떤 이상한 것은 그 오류를 던지고되지 것입니다 Windows 인증

와 클라이언트 자격 증명을 설정합니다. 실버 라이트 앱은 빈 화면으로 멈춘 것처럼 보입니다.

배포 된 서비스를 테스트하려면 브라우저에서 액세스하려고하며 자격 증명을 묻는 메시지가 표시됩니다. 내 이름과 암호를 넣으려고하지만 자격 증명을 다시 묻습니다.

어떤 자격 증명을 요구합니까?

어떻게해야합니까?

<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> 

다음은 웹 설정입니다 : 여기

클라이언트 설정의 Integrated Windows Authentication이 off` 설정되어있는 경우

<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> 

답변

0

Windows Authentication를 사용하여, 당신은 당신이 있기 때문에 할 수있는 암호를 입력하라는 메시지가 나타납니다 Internet Explorer 이외의 브라우저를 사용하십시오.

account is locked out, untrusted domain의 서비스에 연결하는 경우 또는 계정에 리소스에 액세스하기에 충분한 permissions이없는 경우 암호가 작동하지 않습니다.

이 경우 그 중 하나 일 수 있습니까?