私のWCFサービスをWindows認証できないWCFとwindows認証が動作しない
匿名を許可しても問題はありません。
、私はまだ、私は試してみて、私がやっているものを検証するためにWCFサービス構成エディターを使用している運をVS 2010
を問題にしない場合は2008 R2の標準SP1 は、IIS 7.5をWindows上で.NET 3.5を実行していますよ
私は私のweb.configファイルが
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<bindings>
<basicHttpBinding>
<binding name="AmjBasicHttpEndpointBinding">
<security mode="None">
<transport clientCredentialType="Windows" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="SMS.Services.BEIMBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="SMS.Services.BEIMBehavior" name="SMS.Services.BEIM">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="AmjBasicHttpEndpointBinding"
name="BeimServices" contract="SMS.Services.IBEIM">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
でまともな待ち時間の後、20〜30秒
Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.
をエラーが出ます
EDIT エラーメッセージはWebページにあります。 http://Servername/Directory/pageName.svc
あなたは匿名ではなくWindows認証のみになる必要があります –
なぜ ''を使用するのですか? '' –
を試してみてください。これはTransportCredentialOnlyを使用して終了しました。 –