WCF - Windows authentication - Security settings require Anonymous...

Posted by Rashack on Stack Overflow See other posts from Stack Overflow or by Rashack
Published on 2009-06-22T12:12:17Z Indexed on 2010/03/25 10:13 UTC
Read the original article Hit count: 704

Hi,

I am struggling hard with getting WCF service running on IIS on our server. After deployment I end up with an error message:

Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.

I want to use Windows authentication and thus I have Anonymous access disabled. Also note that there is aspNetCompatibilityEnabled (if that makes any difference).

Here's my web.config:

<system.serviceModel>
	<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
	<bindings>
		<webHttpBinding>
			<binding name="default">
				<security mode="TransportCredentialOnly">
					<transport clientCredentialType="Windows" proxyCredentialType="Windows"/>
				</security>
			</binding>
		</webHttpBinding>
	</bindings>
	<behaviors>
		<endpointBehaviors>
			<behavior name="AspNetAjaxBehavior">
				<enableWebScript />
				<webHttp />
			</behavior>
		</endpointBehaviors>
		<serviceBehaviors>
			<behavior name="defaultServiceBehavior">
				<serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
				<serviceDebug includeExceptionDetailInFaults="true" />
				<serviceAuthorization principalPermissionMode="UseWindowsGroups" />
			</behavior>
		</serviceBehaviors>
	</behaviors>
	<services>
		<service name="xxx.Web.Services.RequestService" behaviorConfiguration="defaultServiceBehavior">
			<endpoint behaviorConfiguration="AspNetAjaxBehavior" binding="webHttpBinding"
			 contract="xxx.Web.Services.IRequestService" bindingConfiguration="default">
			</endpoint>
			<endpoint address="mex" binding="mexHttpBinding" name="mex" contract="IMetadataExchange"></endpoint>
		</service>
	</services>
</system.serviceModel>

I have searched all over the internet with no luck. Any clues are greatly appreciated.

© Stack Overflow or respective owner

Related posts about wfc

Related posts about windows-authorization