Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 631215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:56:26+00:00 2026-05-13T19:56:26+00:00

I am starting a new project using WCF so that I can use jQuery

  • 0

I am starting a new project using WCF so that I can use jQuery to make AJAX calls to the server. I have had all kinds of issues with configuring WCF in the past so I decided to do some new research to see if the level of documentation for WCF in VB had improved. Unfortunately WCF documentation to me is still as cloudly as when it was released as a CTP…

However I rediscovered the WebScriptServiceHostFactory and decided to give it a try. From what I gathered from several sources, I should be able to use the WebScriptServiceHostFactory in my .svc file and not have to worry about trying to go through the ABC’s of WCF, (Pun intended).

I built a project that connects to a SQL Server and by way of LinqToSql and returns a dataset. I included the WebScriptServiceHostFactory and and also added the

 <system.serviceModel>
  <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
 </system.serviceModel>

to the web.config. But when I run it I get the dreaded “Security settings for this service require ‘Anonymous’ Authentication but it is not enabled for the IIS application that hosts this service” error message that plagued me so much when I first started to play with WCF.

I rewrote the function to just return a string instead of connecting to a database, etc, just to see if it would work, but I got the same thing.

So the question is, besides adding the factory to the .svc file and the previously mentioned serviceHostingEnviroment option to the web.config, what am I doing wrong???

I have tried checking & unchecking “Enable anonymous access” in the directory security tab in IIS as well. (I have Integrated Windows and Digest Windows Authentication checked).

As always, Thanks!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:56:27+00:00Added an answer on May 13, 2026 at 7:56 pm

    Those articles and blog posts might be helpful to get you started:

    • jQuery AJAX all to WCF REST service
    • Access an AJAX Enabled WCF Service using ASP.NET and Client Script
    • Creating WCF Services for ASP.NET AJAX
    • How To Consume WCF Using AJAX Without ASP.NET
    • Ron Jacobs on how to create an AJAX-enabled WCF service (Endpoint TV)

    Also for your IIS hosting problem, Dominick Baier writes in Hosting WCF Services in ASP.NET – The Survival Guide:

    IIS Authentication Settings
    Another thing I noticed is, that WCF requires
    to enable anonymous authentication for
    the .svc files in IIS (regardless of
    WCF authentication settings). If you
    drop a .svc file into an existing
    ASP.NET application that uses Windows
    authentication you will see this error
    message:

    “Security settings for this service
    require ‘Anonymous’ Authentication but
    it is not enabled for the IIS
    application that hosts this service.”

    You have to individually enable
    anonymous access for the .svc files to
    make it work.

    So either you can follow this practice, or you could optionally also self-host the WCF service instead of relying on IIS – that might solve a boatload of problems at once and give you more control over your hosting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 314k
  • Answers 314k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There is probably not much benefit in trying to keep… May 13, 2026 at 11:07 pm
  • Editorial Team
    Editorial Team added an answer I think you'll need to use the modules folder. A… May 13, 2026 at 11:07 pm
  • Editorial Team
    Editorial Team added an answer for the first page: SELECT * FROM points p ORDER… May 13, 2026 at 11:07 pm

Related Questions

I'm trying to host a WCF Service inside a Windows Service which I am
I am starting to put together a system architecture document for a new project
I am working on a project that is using NetTcp bindings for talking to
I am a beginner in ASP.Net. I am starting a new project using ASP.Net
I am starting a new project, and I am considering using alias data types

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.