2012-12-06 2 views
0

내가있는 wsHttpBinding을 사용하여 WCF 서비스를 만들려고하지만 난 항상 오류를 얻는 SECURITYMODE을 변경할 때마다 내가오류 WCF 서비스의 변화 보안 모드는

<system.serviceModel> 
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"> 
    <serviceActivations> 
    <add relativeAddress="General.svc" service="SMJ.Services.GeneralService" /> 
    </serviceActivations> 
</serviceHostingEnvironment> 
<bindings> 
    <wsHttpBinding> 
    <binding closeTimeout="00:01:00" 
     openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
     allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
    maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" 
     messageEncoding="Text" textEncoding="utf-8" 
     useDefaultWebProxy="true"> 
     <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="16348" 
     maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
     <security mode="None"> 
     <transport clientCredentialType="None" proxyCredentialType="None" 
      realm="" /> 
     <message clientCredentialType="UserName" algorithmSuite="Default" /> 
     </security> 
    </binding> 
    </wsHttpBinding> 
</bindings> 
<services> 
    <service name="SMJ.Services.GeneralService" behaviorConfiguration="ServiceBehaviors" > 
    <endpoint contract="SMJ.Services.IGeneralService" binding="wsHttpBinding"></endpoint> 
    </service> 
</services> 
<behaviors> 
    <serviceBehaviors > 
    <behavior name="ServiceBehaviors" > 
     <serviceMetadata httpGetEnabled="true" /> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 

구글에서 샘플을 수정하는 방법 중요하지하고 때

보안 모드를 다른 것으로 변경하면이 오류가 표시됩니다. 바인딩 WSHttpBinding을 사용하여 끝점에 대한 구성표 https와 일치하는 기본 주소를 찾을 수 없습니다. 등록 된 기본 주소 체계는 [http]입니다.

서버은 IIS 7 입니다하지만 난 개발 오전

나를 도와주세요 할 때 문제는

+0

서비스가 IIS에서 호스팅되고 있습니까? –

+0

예. 하지만 여전히 개발 중입니다. 2010 년 vs를 사용하고 있습니다 – luhuiya

+0

대신 를 설정할 수 있습니까? –

답변

0

내가 IIS Express를 사용하여 설정하고 속성 창에서 웹 프로젝트에서 해결책을 찾았 확인 SSL Enabled가 true로 설정됩니다. 조언을 주셔서 감사합니다.