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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:40:10+00:00 2026-05-26T22:40:10+00:00

So I have a basic WCF service to be consumed by straight jQuery/HTML, no

  • 0

So I have a basic WCF service to be consumed by straight jQuery/HTML, no asp.net.

I can make GET calls to my test.svc/test via the browser and get my expected JSON result.
{“d”:[“test1″,”test2″,”test3”]}

Now, I’m trying to consume it via jQuery 1.4.x

$.ajax({
        type: "GET",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        url: methodUrl,
        data: {},
        beforeSend: function (XMLHttpRequest) {
            XMLHttpRequest.setRequestHeader("Accept", "application/json");
        },
        success: successCallback,
        error: failedCallback
    });

I’m grabbing the error info and dumping it to the console, this is my error.
LOG: {“readyState”:4,”status”:0,”statusText”:”error”}
LOG: “error”
LOG: {“message”:”Access is denied.\r\n”,”description”:”Access is denied.\r\n”,”number”:-2147024891}

I’ve read that I need to use JSON-P and/or crossDomainScriptAccessEnabled or 30 other things.

So far I’ve not seen a consistent solution to this problem.

Any help would be appreciated.

Thanks!
Jon

  • 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-26T22:40:11+00:00Added an answer on May 26, 2026 at 10:40 pm

    So it appears to be a hack for our situation regardless.

    We’re using MS Dynamics CRM 2011, which only allows plain html pages with JS and only supports IE.

    We ended up running another WCF service that sits on the same box as CRM (breaking requirements) that is just a proxy that in-turn calls our real WCF service that sits on another box.

    It’s goofy and adds more overhead to maintenance but we’re at least able to keep producing JSON instead of JSON-P so that other consumers can use it too.

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

Sidebar

Related Questions

I have a WCF service which calls an STA Visual Basic 6.0 COM object.
I have a simple ASP.NET site making a call to a WCF service. The
I have created a basic WCF service in IIS. I am aware that this
I have a WCF service application with most basic settings working properly on my
I have a WCF web service, and I want to use Basic authentication. I
I have a WCF service that will be using basic authentication and would like
I have made a REST Web service, that works with Visual Studios WCF Test
I have a wcf service set up to accept basic http binding. I want
I have a wcf service which use wsDualHttpBinding, i get that error when i
I have a basic wcf service and when I go to the wcfctestclient to

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.