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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:09:10+00:00 2026-05-31T08:09:10+00:00

While debugging I verified this js func is called: var oAuthManager = { loginWithGoogle_OnClick:

  • 0

While debugging I verified this js func is called:

var oAuthManager = {
    loginWithGoogle_OnClick: function () {
        createAjaxRequest("Register/GetAuthorizeRequestToken", {
                    'providerType': 'google'}).done(function (res) { });
//        createAjaxRequest("Register", null).done(function (res) { });
    }
};

and it calls:

function createAjaxRequest(url,data) {
    return $.ajax(
            {
                type: "POST",
                url: url,
                data: data
            });
        };

So why cannot I get to this RegisterController’s method?

 [HttpPost] \\tried with and without this
public void GetAuthorizeRequestToken(string providerType)
{
    var authType = (OAuthProviderTypes)Enum.Parse(typeof(OAuthProviderTypes), providerType);
    mAuthorizationService.GetAuthorizeRequestToken(authType);
}

other controllers works fine with othe js.

I get the error:

POST http://localhost:8976/Register/GetAuthorizeRequestToken 500 (Internal Server Error)

I have two breakpoints:

  • one in the ctor which stops OK

  • second in the beginning of the webMethod. I see the thread never reaches there.

  • 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-31T08:09:12+00:00Added an answer on May 31, 2026 at 8:09 am

    Elad,

    I was able to reproduce your code pretty much line by line and is working. So let’s analyze the issue.

    You are not getting a 404 (not found, or a 403 (request denied)… You are getting a 500 error, which means the application broke somewhere.

    So I would start investigating some of these points:

    • Does your controller inherits from a base class? Is there an initialization step failing?
    • Put a break point INSIDE your service call. Maybe VS is behaving badly and is not stopping on the Action as it should.

    If you find nothing, I would also try the following to isolate the problem:

    • Hitting the action with Fiddler
    • Make the js call simpler to see if you can reach the action (e.g. post without data)
    • Include a datatype on your ajax call (worked for me without it though)

    That should be a good start, I hope it helps,

    -covo

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

Sidebar

Related Questions

While debugging I found that this kind of functions: var f = function() {};
While debugging a crash, I came across this issue in some code: int func()
While debugging crash in a multithreaded application I finally located the problem in this
i get this dialog while debugging code in visual studio 2008. (your step-into request
While debugging a WCF service I came across this issue. I use an HttpURLConnection
While debugging python application, I normally use pdb / ipdb's set_trace() function to programmatically
While debugging, I notice the following with this C# app I have here: It
While debugging the code below, BroadcastReceiverCustom is being called but PhoneStateListenerCustom is not. For
While debugging in xcode: How do you navigate to the current cursor position. This
While debugging a client app that uses a Google backend, I have added some

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.