Click here to Skip to main content
12,946,728 members (50,626 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am using BasicHTTPBinding as per my req I have to disable anonymous access and make the service with Winodws Integration. I hv checked many forum and write the code as below in app.config file.

Connection String as:
< connectionString="Data source="IPadrress ";Initial Catalog="myPortal ";Integrated security=True" /><

<compilation debug="true" />
<authentication mode="Windows">
<identity impersonate="true" />
</system.web> >-->
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<binding name="BasicHttpEndpointBinding">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" />
<service behaviorConfiguration="ServiceBehaviour" name="Service">
<!-- Service Endpoints -->
<!-- Unless fully qualified, address is relative to base address supplied above -->
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding" contract="IService">
Upon deployment, the following identity element should be removed or replaced to reflect the
identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
<dns value="localhost" />

<!-- Metadata Endpoints -->
<behavior name="ServiceBehaviour">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="false"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false" />

but when I browse from inetmgr getting the below error even after iisreset also.

Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.
Posted 8-Jan-13 7:39am
Updated 8-Jan-13 7:47am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,919
CHill60 3,235
Maciej Los 2,508
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100