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

  • SEARCH
  • Home
  • 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 6713261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:21:30+00:00 2026-05-26T08:21:30+00:00

I have seen several postings for issues with consuming AJAX web services and the

  • 0

I have seen several postings for issues with consuming AJAX web services and the receiving of the error:

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

The threads all have several solutions that at least for me have not worked and then a final posting of ‘Got it to work’, but what was done to get it to work is never actually given. I am developing a website using AJAX-Enabled ‘WCF’ Services. I do not have access to the server configuration, so changing the server to allow for Anonymous access is not an option. The current website configuration works for when the site is ran on the local host development machine. However, when the website is published to the server that does not allow Anonymous access, I get the above error. I have created a simple AJAX service that does nothing but returns a string to the calling JavaScript function. The simple setup still has the authentication issue, there for leading me to believe that the issue is with the setup of how the AJAX services are defined in the Web.Config. Any suggestions to get me past the above error, would be greatly appreciated it! I believe I need to get the AJAX services to use windows authentication and through the research of the threads have played around with the binding type and the security in use for the Transport and Message. I have tried a black setting, NTLM, and Windows, but I have not found the combination that was successful.

Current Web.Config

<?xml version="1.0"?>
    <configuration>
        <system.web>
            <roleManager enabled="true" />
            <sessionState cookieless="false" regenerateExpiredSessionId="true" />
            <compilation debug="true" targetFramework="4.0">
                <assemblies>
                    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                    <add assembly="System.Data.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                    <add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                    <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                    <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                    <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                    <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                    <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                </assemblies>
                <buildProviders>
                    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
                </buildProviders>
            </compilation>
            <authentication mode="Windows" />
            <identity impersonate="true" />
            <pages enableViewStateMac='false' controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
            <httpHandlers>
                <remove verb="*" path="*.asmx"/>
                <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory" validate="false"/>
                <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    validate="false" />
            </httpHandlers>
            <customErrors mode="Off"/>
        </system.web>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false" />
            <security>
                <authentication>
                    <windowsAuthentication enabled="true" />
                </authentication>
            </security>
            <modules runAllManagedModulesForAllRequests="true" />
            <handlers>
                <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            </handlers>
        </system.webServer>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="basicBinding">
                    <security mode="TransportCredentialOnly">
                        <transport clientCredentialType="Ntlm"/>
                    </security>
                </binding>
            </basicHttpBinding>
            <webHttpBinding>
                <binding name="default"/>
            </webHttpBinding>
        </bindings>
        <behaviors>
            <endpointBehaviors>
                <behavior name="webScriptEnablingBehavior">
                    <enableWebScript/>
                </behavior>
                <behavior name="srvTestAspNetAjaxBehavior">
                    <enableWebScript />
                </behavior>
            </endpointBehaviors>
            <serviceBehaviors>
                <behavior name="">
                    <serviceMetadata httpGetEnabled="true" />
                    <serviceDebug includeExceptionDetailInFaults="false" />
                </behavior>
                <behavior name="MyServiceTypeBehaviors">
                    <serviceMetadata httpGetEnabled="true"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
        <services>
            <service name="srvTest" behaviorConfiguration="MyServiceTypeBehaviors">
                <endpoint address="" binding="webHttpBinding"
              bindingConfiguration="default"
              contract="srvTest"
              behaviorConfiguration="srvTestAspNetAjaxBehavior" />
            </service>
        </services>
    </system.serviceModel>
</configuration>
  • 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-26T08:21:31+00:00Added an answer on May 26, 2026 at 8:21 am

    I was unable to find a solution to using AJAX-enabled WCF Service with a server that does not allow for anonymous access and forcing use of Windows Authentication. To resolve the issue I ended up changing the services from AJAX-enabled WCF Service (.SVC) to Web Service (.ASMX). Converting it to using Web Services and removing references to the services from within the Web.Config, allow the services to be accessed from JavaScript and do not cause authenication errors.

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

Sidebar

Related Questions

Where is the TickCount() call? I have seen several threads on the web that
We have several areas where code like this can be seen public Map extractData(ResultSet
This is out of curiosity, but I have seen several (and some of them
Here's my problem. I have a middleware web service used by several web clients.
Ok, I have seen several questions related to this issue, and I have tried
I have seen several tutorials on how to achieve this. However in my opinion
I have seen several similar questions to this, but none that addresses my specific
I have seen several variations of this awk code (people have re-written it to
I have seen several questions with people asking about the same problem but none
What does the Linux /proc/meminfo Mapped topic mean? I have seen several one-liners that

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.