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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:29:32+00:00 2026-06-18T14:29:32+00:00

I am trying to get the standard Visual Studio 2012 MVC4 Internet template and

  • 0

I am trying to get the standard Visual Studio 2012 MVC4 Internet template and oAuth to work but it won’t!

So here are the simple steps to recreate.

  1. Create new MVC4 Inernet Application
  2. In Package Manager console execute: update-package
  3. Un-comment OAuthWebSecurity.RegisterGoogleClient() in file AuthConfig.cs (I was under the impression that the Google oAuth does not need a key so un-commenting this line in the AuthConfig.cs file would enable it.)
  4. F5 to run app

at this point I see the following error:

Error when entering login page:

Unhandled exception at line 115, column 5 in http://localhost:63180/Scripts/jquery.unobtrusive-ajax.js

0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'live'
  1. Click the login link on home page
  2. Click the Google Button

at this point I get this error:

ProtocolException was unhandled by user code
No OpenID endpoint found
  • 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-06-18T14:29:33+00:00Added an answer on June 18, 2026 at 2:29 pm

    The cause of the error and the solution

    The cause is that jquery-unobtrusive-ajax.js who is in charge of supporting the unobtrusive ajax in ASP.NET MVC using jQuery live method. But this method was deprecated in jQuery 1.7 and has been removed in 1.9.

    This method allowed an event associated with any DOM element present or future.
    The method to be used in place of live currently is the method on.

    However the syntax is a bit different, since the method has more uses on jQuery.

    $ ("form [data-ajax = true].") live ("submit", function (e) { ... }
    

    modify the call to live with a call to on.

    For on act like we happen to live on 3 parameters:
    The event (like live, will “submit”)
    A selector (elements “children”) is based selector which must always exist
    The handler function (like live).

    In this case our line looks like:

    $ ("body"). on ("submit", "form [data-ajax = true]", function (e) { ... }
    

    I moved the selector to the second parameter of on and have made you a basic selector “body” (not the most optimal, but well I’m sure there always).

    The idea is that the last function is associated with all current and future elements of type form [data-ajax = true] that are within the selector base (body).

    For all other calls to live (there are 3 more) make the same substitution that we be as follows:

    $ ("body"). on ("click", "form [data-ajax = true]: submit", function (e) { ... }
    $ ("body"). on ("click", "a [data-ajax = true]", function (e) { ... }
    $ ("body"). on ("click", "form [data-ajax = true] input [type = image]", function (e) { ... }
    

    And ready! With this we have recovered ajax functionality MVC unobtrusive and your application should work properly again!

    translated from: http://geeks.ms/blogs/etomas/archive/2013/01/18/jquery-1-9-y-el-unobtrusive-ajax-de-asp-net-mvc.aspx

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

Sidebar

Related Questions

I'm trying to get both ActiveDirectory and standard forms login working but one thing
I am trying to get a working regular expression to convert standard HTML code
I'm new to Standard ML and I'm trying to get my head around the
I am trying get Struts 2 and Tiles to work and I am using
Trying to get this expression to work, can someone look at it and tell
I've created a brand new MVC 4 application in C# using Visual Studio 2012.
I'm trying (still) to get ajaxful-rating to work with my rails installation. I did
I've been playing with the RC of Visual Studio 2010, trying to set it
I am trying to move a C# Compact Framework 1 application from Visual Studio
Visual studio 11 (beta) uses the new C++11 standard, which seems to break protobuf.

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.