Click here to Skip to main content
13,298,348 members (69,644 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


4 bookmarked
Posted 5 Apr 2014

Remove the Anonymous Authentication Exception in WCF

, 5 Apr 2014
Rate this:
Please Sign up or sign in to vote.
Remove the ‘Anonymous Authentication’ exception that occurs at the time of WCF service (3.5 framework) hosting on IIS


In this tip, I will explain how you can get rid of the ‘Anonymous Authentication’ exception of WCF service hosting on IIS, that you create in 3.5 framework.


Let’s take a real current scenario. I have a web service in a website (.NET framework 3.5) which is running on the server and I am using that web service in my Windows application. Now I want to replace the web service with WCF service.

To explain this, I will create:

  • A website with a Default page
  • A WCF service in it in place of web service

Follow the steps to do this.

Step 1

Add a new website named ‘Wcf_Example’ using 3.5 framework.

Step 2

Add a WCF Service named ‘MYService.svc’ into it.

This will create 3 files:

  • IMYService.cs – Contains Interface of MYService class
  • MYService.cs – Contains MYService class
  • MYService.svc – Contains details required for WCF service to run it successfully like .asmx in web service


Get the exception when I run the service ‘http://localhost/WCF_Example/MYService.svc'


Open the control panel and click on ‘Turn Windows features on or off’

Check the ‘Windows Communication Foundation HTTP Activation’ and ‘Windows Communication Foundation Non- HTTP Activation’.

Now run the WCF Service ‘http://localhost/WCF_Example/MYService.svc'.


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


About the Author

Software Developer (Senior) CyberQ
India India
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 5 Apr 2014
Article Copyright 2014 by Rahul_Bansal
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid