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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:33:16+00:00 2026-05-14T05:33:16+00:00

I need help with wcf service. i have a ajax-enabled wcf service: public class

  • 0

I need help with wcf service. i have a ajax-enabled wcf service:

public class AddFavorites : Page
    {
        // Add [WebGet] attribute to use HTTP GET

        [WebGet(RequestFormat = WebMessageFormat.Json)]
        [OperationContract]
        public void AddFavorite()
        {
           this.AddMyFavorite(10, "sometext", "sometext");
        }
    }

And clientside looks like this:

function AddFavorite() {
    $.ajax({
        type: "GET",
        url: "/WebServices/AddFavorites.svc/AddFavorite",
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        cache: false
    });
};

Im using fiddler to trace the application and i always get HTTP500. The class is inherited from Page class and uses the AddMyFavorite method that takes care of database. Website is hosted on iis7

  • 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-14T05:33:16+00:00Added an answer on May 14, 2026 at 5:33 am

    An HTTP 500 error is something bad that happened on the server. Go in debug mode and debug your service – you’ll see a more descriptive message about what went wrong. I would guess that the AddMyFavorite method throws and exception of some kind, but you have to debug this to see for sure.

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

Sidebar

Related Questions

I need your help on one practical issue. I have created a WCF service
I have a WCF service. I need to implement IServiceBehavior in my class that
Just need some help with this. I have written a WCF service which passes
I need some help about WCF and authorization. Currently I have a client which
I have a WCF service. now, I need to create a client that consumes
Please help...I'm going crazy....I have a wcf service that exists on a few different
I need to consume a WCF service from a DLL, hence i don't have
I need some help posting some XML to a WCF service. In essence, the
Need help with a query that I wrote: I have three tables Company id
need help/guide for sql select query, I have 2 table stock and stock_history, in

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.