IIS 7でホストされているAuthenticationService WCFを使用して 、 Windows phone 7からのユーザー ログを認証しようとしています。
SSLなしで試してみましたが、正常に動作しています。しかし、私はそれをhttpsに変換したい。
WP7エミュレーターからこのWCFへの呼び出しをヒットしたときに発生するエラーは次のとおりです。
"EndpointNotFoundException"
ただし、私の web.config には次の詳細があります。
<system.serviceModel>
<services>
<service name="System.Web.ApplicationServices.AuthenticationService"
behaviorConfiguration="AuthenticationServiceTypeBehaviors">
<endpoint contract="System.Web.ApplicationServices.AuthenticationService"
binding="basicHttpBinding"
bindingConfiguration="userHttps" address="https://localhost:700/AuthenticationService.svc"
bindingNamespace="http://asp.net/ApplicationServices/v200"/>
<endpoint address="mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="userHttps">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="AuthenticationServiceTypeBehaviors" >
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment
aspNetCompatibilityEnabled="true"/>
</system.serviceModel>
使用: AspNetSqlMembershipProvider と私はポイントを作るためにこれらの詳細を避けています。
私のIIS 7では、アプリケーションプールを作成し、自己署名証明書をホストされたWCFに関連付け、SSL設定オプションで「SSLが必要 - 選択済み」および「クライアント証明書を無視 - チェック済み」に関連付けました。
閲覧できますhttps://localhost:700/AuthenticationService.svc.
これを電話でサービス参照として追加できましたが、ログイン メソッドを呼び出すとエラーが表示されます。
エンドポイント アドレスを指定しましたが、それでもエラーが表示されます。
これをデバッグして詳細を取得する方法や、「SSL 経由で認証サービス WCF を使用する」を解決するための指針を誰かに説明してもらえますか?
編集1ブラウザからサービスにアクセスしようとしたときに、IPアドレスとsvc URLを使用してみました
svcutil.exe https://mcname.domain.local:700/AuthenticationService.svc?wsdl
EDIT 2ウイルス対策とファイアウォールを無効にしようとしましたが、まだうまくいきません。