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 6544871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:31:05+00:00 2026-05-25T11:31:05+00:00

Been beating about this problem for a while now. Under IIS6 and windows authentication,

  • 0

Been beating about this problem for a while now.

Under IIS6 and windows authentication, whenever I attempt to use jquery to post to a WCF service, the service method is called and executed but all of the post data (the method arguments) are null. This only seems to occur on the IE8 version that is on that machine. This does not occur in Firefox and this also does not occur, strangely enough, when fiddler is running (acting as a proxy).

This code works fine under IIS7 and appears to work fine under IIS6 Anonymous Authentication.

The post data is just JSON.

$.callService('GetCurrentTemplates', pagingData, GetCurrentTemplateSucceeded, ServiceFailed);

$.callService = function (url, data, successHandler, failHandler) {
    var applicationUrl = $("#hdApplicationUrl").val();
    $.ajax({
        type: "POST", //GET or POST or PUT or DELETE verb
        url: applicationUrl + "Service.svc/" + url, // Location of the service
        data: $.jsonSerialize(data), //Data sent to server
        contentType: "application/json; charset=utf-8", // content type sent to server
        dataType: "json", //Expected data format from server
        processdata: true, //True or False
        success: function (result) {
            if (result == null) {
                var resultObj = new Object();
                resultObj.status = 401;
                resultObj.statusText = 'Unauthorized';
                $.showError(resultObj);
                return;
            }
            if (successHandler != null && successHandler != undefined)
                successHandler(result);
        }, // When success
        error: function (result) {
            $.showError(result);
        } // When Service call fails
    });

The WCF service was designed to use the WebServiceHostFactory and web.config definitions are as follows:

<services>
  <service name="Company.Core.TemplateService" behaviorConfiguration="templateWcfBehavior">
    <endpoint address="" binding="webHttpBinding" bindingConfiguration="templateWebHttpBinding" behaviorConfiguration="jsonEndpointBehavior" contract="Company.Core.ITemplateService" />
  </service>
</services>

<behaviors>
    <endpointBehaviors>
        <behavior name="jsonEndpointBehavior">
            <webHttp />
        </behavior>
    </endpointBehaviors>
    <serviceBehaviors>
        <behavior name="templateWcfBehavior">
            <serviceMetadata httpGetEnabled="true" />
            <serviceDebug includeExceptionDetailInFaults="false" />         
        </behavior>
    </serviceBehaviors>
</behaviors>

<webHttpBinding>
<binding name="templateWebHttpBinding" maxReceivedMessageSize="2147483647">
  <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</webHttpBinding>

The service file is, of course, under Anonymous Access (not windows authentication).

If we run -everything- under anonymous access, the jquery passes the service the appropriate data, the methods return what we want them to, etc. The same occurs if we run under integrated mode authentication but have fiddler up on the client.

It seems that Fiddler is mutating the packets to fix an obvious defect – having trouble as the issue only seems to occur local to a machine (precluding the use of wireshark/ethereal to sniff packets and determine the exact differences).

At this point, any advice / information you can offer would be extremely helpful.

Update 2011-09-07: Interesting enough, if I contact the service (and asp.net spins it up) – I can then change the service from Anonymous Access to Windows Integrated Authentication. While the service is already spun up and activated, this actually causes everything to run perfectly. If I wait for IIS6 to flush the metabase changes to disk and run IISreset (or recycle the app pool), it fails. The reason it fails is due to “Security settings for this service require ‘Anonymous’ Authentication but it is not enabled for the IIS application that hosts this service. “. Looks like I am in a quandary. For whatever reason, under anonymous access my argument post settings are lost. If the service is already spun up, I can change the file to Integrated mode auth and everything will work. If the service is not spun up (or is lost as the app pool recycles) and it is set to integrated mode authenticatin, I fail with the error noted above. Ye Gads!

  • 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-25T11:31:06+00:00Added an answer on May 25, 2026 at 11:31 am

    Cause appears to be once IE encounters NTLM, it then requires NTLM for all other pages on the site. See http://support.microsoft.com/?id=251404
    “You cannot post data to a non-NTLM-authenticated Web site”

    Suggested workaround is if you enable NTLM on anything, enable NTLM on everything.

    Alternative workaround is a client side registry hacks that change the NTLM auth process. From that link:

    • HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings/ DisableNTLMPreAuth REG_DWORD 1
    • and Tools/Options/Advanced/Security: disable “Enable Integrated Windows Authentication (requires restart)”

    Presumably Fiddler makes it work because it is doing the NTLM handshake differently.

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

Sidebar

Related Questions

I've been beating my head against this reg ex for the longest time now
I've been beating my head against this for a few days now. I'm trying
Well, I have been beating my head over this one for some time now,
I'm completely new to jQuery/javascript and have been beating my head against this simple
I've been beating my head against a problem for about a week and am
I've been beating myself over the head with this app migration for a few
I've been beating my brains in over this and I'm making no progress. I'm
I've been beating my head against this, and I'm sure I'm just missing something
Been using PHP/MySQL for a little while now, and I'm wondering if there are
Been running into this problem lately... When debugging an app in VS.Net 2005, breakpoints

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.